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

From RimWorld Wiki
Jump to navigation Jump to search
(hopefully reduced the post-expand include size enough)
(maybe this reduces the include size?)
Line 13: Line 13:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
! [[{{{1}}}]]
 
! [[{{{1}}}]]
| {{Q|{{{1}}}|Type}}
+
| {{#show:{{{1}}}|?Type}}
| {{#expr: {{Q|{{{1}}}|Wildness}} * 100}}%  
+
| {{#expr: {{#show:{{{1}}}|?Wildness}} * 100}}%  
| {{Q|{{{1}}}|Body Size}}
+
| {{#show:{{{1}}}|?Body Size}}
| {{Q|{{{1}}}|Mass - Adult}}
+
| {{#show:{{{1}}}|?Mass - Adult}}
| {{Q|{{{1}}}|Health Scale}}
+
| {{#show:{{{1}}}|?Health Scale}}
| {{Q|{{{1}}}|Market Value Base}}
+
| {{#show:{{{1}}}|?Market Value Base}}
| {{#expr: {{Q|{{{1}}}|Juvenile Age}}*60 round 2}}
+
| {{#expr: {{#show:{{{1}}}|?Juvenile Age}}*60 round 2}}
| {{#expr: {{Q|{{{1}}}|Maturity Age}}*60 round 2}}
+
| {{#expr: {{#show:{{{1}}}|?Maturity Age}}*60 round 2}}
| {{Q|{{{1}}}|Life Expectancy}}
+
| {{#show:{{{1}}}|?Life Expectancy}}
| {{#if:{{#vardefineecho:egg_interval|{{Q|{{{1}}}|Egg Laying Interval}}}}|{{#var:egg_interval}}
+
| {{#if:{{#vardefineecho:egg_interval|{{#show:{{{1}}}|?Egg Laying Interval}}}}|{{#var:egg_interval}}
   | {{#if:{{#vardefineecho:gestation|{{Q|{{{1}}}|Gestation Period Days}}}}|{{#var:gestation}}
+
   | {{#if:{{#vardefineecho:gestation|{{#show:{{{1}}}|?Gestation Period Days}}}}|{{#var:gestation}}
 
     | -
 
     | -
 
   }}
 
   }}
 
}}
 
}}
| {{#if:{{#vardefineecho:clutch_size|{{Q|{{{1}}}|Eggs Per Clutch Average}}}}|{{#var:clutch_size}}
+
| {{#if:{{#vardefineecho:clutch_size|{{#show:{{{1}}}|?Eggs Per Clutch Average}}}}|{{#var:clutch_size}}
   | {{#if:{{#vardefineecho:litter_size|{{Q|{{{1}}}|Average Offspring Per Birth}}}}|{{#var:litter_size}}
+
   | {{#if:{{#vardefineecho:litter_size|{{#show:{{{1}}}|?Average Offspring Per Birth}}}}|{{#var:litter_size}}
 
     | {{#if:{{#var:gestation}}|1|-}}
 
     | {{#if:{{#var:gestation}}|1|-}}
 
   }}
 
   }}
 
}}
 
}}
| {{Q|{{{1}}}|Animal Filth Rate}}
+
| {{#show:{{{1}}}|?Animal Filth Rate}}
| {{#if:{{#vardefineecho:roam|{{Q|{{{1}}}|Roam Mtb Days}}}}|{{#var:roam}}|-}}
+
| {{#if:{{#vardefineecho:roam|{{#show:{{{1}}}|?Roam Mtb Days}}}}|{{#var:roam}}|-}}
| {{Q|{{{1}}}|Min Comfortable Temperature}}
+
| {{#show:{{{1}}}|?Min Comfortable Temperature}}
| {{Q|{{{1}}}|Max Comfortable Temperature}}
+
| {{#show:{{{1}}}|?Max Comfortable Temperature}}
 
|-
 
|-
 
</includeonly>
 
</includeonly>
 
<noinclude>[[Category:Customized table templates]]</noinclude>
 
<noinclude>[[Category:Customized table templates]]</noinclude>

Revision as of 11:31, 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