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

From RimWorld Wiki
Jump to navigation Jump to search
m
(hopefully reduced the post-expand include size enough)
Line 22: Line 22:
 
| {{#expr: {{Q|{{{1}}}|Maturity Age}}*60 round 2}}
 
| {{#expr: {{Q|{{{1}}}|Maturity Age}}*60 round 2}}
 
| {{Q|{{{1}}}|Life Expectancy}}
 
| {{Q|{{{1}}}|Life Expectancy}}
| {{#if:{{Q|{{{1}}}|Egg Laying Interval}}|{{Q|{{{1}}}|Egg Laying Interval}}
+
| {{#if:{{#vardefineecho:egg_interval|{{Q|{{{1}}}|Egg Laying Interval}}}}|{{#var:egg_interval}}
   | {{#if:{{Q|{{{1}}}|Gestation Period Days}}|{{Q|{{{1}}}|Gestation Period Days}}
+
   | {{#if:{{#vardefineecho:gestation|{{Q|{{{1}}}|Gestation Period Days}}}}|{{#var:gestation}}
 
     | -
 
     | -
 
   }}
 
   }}
 
}}
 
}}
| {{#if:{{Q|{{{1}}}|Eggs Per Clutch Average}}|{{Q|{{{1}}}|Eggs Per Clutch Average}}
+
| {{#if:{{#vardefineecho:clutch_size|{{Q|{{{1}}}|Eggs Per Clutch Average}}}}|{{#var:clutch_size}}
   | {{#if:{{Q|{{{1}}}|Average Offspring Per Birth}}|{{Q|{{{1}}}|Average Offspring Per Birth}}
+
   | {{#if:{{#vardefineecho:litter_size|{{Q|{{{1}}}|Average Offspring Per Birth}}}}|{{#var:litter_size}}
     | {{#if:{{Q|{{{1}}}|Gestation Period Days}}|1|-}}
+
     | {{#if:{{#var:gestation}}|1|-}}
 
   }}
 
   }}
 
}}
 
}}
 
| {{Q|{{{1}}}|Animal Filth Rate}}
 
| {{Q|{{{1}}}|Animal Filth Rate}}
| {{#if:{{Q|{{{1}}}|Roam Mtb Days}}|{{Q|{{{1}}}|Roam Mtb Days}}|-}}
+
| {{#if:{{#vardefineecho:roam|{{Q|{{{1}}}|Roam Mtb Days}}}}|{{#var:roam}}|-}}
 
| {{Q|{{{1}}}|Min Comfortable Temperature}}
 
| {{Q|{{{1}}}|Min Comfortable Temperature}}
 
| {{Q|{{{1}}}|Max Comfortable Temperature}}
 
| {{Q|{{{1}}}|Max Comfortable Temperature}}

Revision as of 11:26, 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 15 19.98 30 6.66 1 16 2 -35 45