Difference between revisions of "Template:Animals/Additional/Row"

From RimWorld Wiki
Jump to navigation Jump to search
(fix)
(improved handling of dryads)
Line 19: Line 19:
 
| {{#show:{{{?Name|{{{1}}}}}}|?Health Scale}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Health Scale}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Market Value Base}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Market Value Base}}
| {{#expr: {{#show:{{{?Name|{{{1}}}}}}|?Juvenile Age}}*60 round 2}}
+
| {{#if:{{#vardefineecho:juv_age:{{#show:{{{?Name|{{{1}}}}}}|?Juvenile Age}}}}|{{#expr:{{#var:juv_age}}*60 round 2}}|-}}
| {{#expr: {{#show:{{{?Name|{{{1}}}}}}|?Maturity Age}}*60 round 2}}
+
| {{#if:{{#vardefineecho:mat_age:{{#show:{{{?Name|{{{1}}}}}}|?Maturity Age}}}}|{{#expr:{{#var:mat_age}}*60 round 2}}|-}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Life Expectancy}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Life Expectancy}}
 
| {{#if:{{#vardefineecho:egg_interval|{{#show:{{{?Name|{{{1}}}}}}|?Egg Laying Interval}}}}|{{#var:egg_interval}}
 
| {{#if:{{#vardefineecho:egg_interval|{{#show:{{{?Name|{{{1}}}}}}|?Egg Laying Interval}}}}|{{#var:egg_interval}}

Revision as of 11:50, 27 September 2021

This template pulls the data from each animal's individual page and formats it into a neat row summary. It is only intended for use on the List of animals/Additional page.

Usage: {{Animals/Additional/Row|*name*}}

The template takes a single parameter, the name of the animal being referenced, which must be the exact name of the animal's main page.

Example:

Animal Type Wildness Body Size Mass Health Scale Market Value Juvenile Age Maturity Age Life Expectancy Gestation Period Average Offspring Filth Rate Roam Interval Min Temperature Max Temperature
Horse Animal 35% 2.4 144 1.75 550 - - 30 6.66 1 16 2 -35 45