Editing Template:Animals/Additional/Row

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly>
+
<noinclude>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 stats]] page.
! [[{{{?Name|{{{1}}}}}}]]<br/>[[{{#show:{{{?Name|{{{1|Horse}}} }}}|?Image#}}|32px]]
+
 
| {{#show:{{{?Name|{{{1}}}}}}|?Type}}
+
Usage:  <code><nowiki>{{Animals/Additional Stats Row|*name*}}</nowiki></code>
| {{#expr: {{#show:{{{?Name|{{{1}}}}}}|?Wildness}} * 100}}%  
+
 
| {{#show:{{{?Name|{{{1}}}}}}|?Body Size}}
+
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.
| {{#show:{{{?Name|{{{1}}}}}}|?Mass - Adult}}
+
 
| {{#if:{{#vardefineecho:val|{{#show:{{{?Name|{{{1}}}}}}|?Market Value Base}}}}|{{#var:val}}|-}}
+
Example:
| {{#if:{{#vardefineecho:combatPower|{{#show:{{{?Name|{{{1}}}}}}|?Combat Power}}}}|{{#var:combatPower}}|-}}
+
{| {{STDT| sortable c_08 text-center}}
| {{#if:{{#vardefineecho:juv_age|{{#show:{{{?Name|{{{1}}}}}}|?Juvenile Age}}}}|{{#expr:{{#var:juv_age}}*60 round 2}}|-}}
+
! 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
| {{#if:{{#vardefineecho:mat_age|{{#show:{{{?Name|{{{1}}}}}}|?Maturity Age}}}}|{{#expr:{{#var:mat_age}}*60 round 2}}|-}}
+
|-
| {{#show:{{{?Name|{{{1}}}}}}|?Life Expectancy}}
+
{{Animals/Additional Stats Row|Horse}}
| {{#if:{{#vardefineecho:egg_interval|{{#show:{{{?Name|{{{1}}}}}}|?Egg Laying Interval}}}}|{{#var:egg_interval}}
+
|}
   | {{#if:{{#vardefineecho:gestation|{{#show:{{{?Name|{{{1}}}}}}|?Gestation Period Days}}}}|{{#var:gestation}}
+
</noinclude><includeonly>
 +
! [[{{{1}}}]]
 +
| {{Q|{{{1}}}|Type}}
 +
| {{#expr: {{Q|{{{1}}}|Wildness}} * 100}}%  
 +
| {{Q|{{{1}}}|Body Size}}
 +
| {{Q|{{{1}}}|Mass - Adult}}
 +
| {{Q|{{{1}}}|Health Scale}}
 +
| {{Q|{{{1}}}|Market Value Base}}
 +
| {{#expr: {{Q|{{{1}}}|Juvenile Age}}*60 round 2}}
 +
| {{#expr: {{Q|{{{1}}}|Maturity Age}}*60 round 2}}
 +
| {{Q|{{{1}}}|Life Expectancy}}
 +
| {{#if:{{Q|{{{1}}}|Egg Laying Interval}}|{{Q|{{{1}}}|Egg Laying Interval}}
 +
   | {{#if:{{Q|{{{1}}}|Gestation Period Days}}|{{Q|{{{1}}}|Gestation Period Days}}
 
     | -
 
     | -
 
   }}
 
   }}
 
}}
 
}}
| {{#if:{{#vardefineecho:clutch_size|{{#show:{{{?Name|{{{1}}}}}}|?Eggs Per Clutch Average}}}}|{{#var:clutch_size}}
+
| {{#if:{{Q|{{{1}}}|Eggs Per Clutch Average}}|{{Q|{{{1}}}|Eggs Per Clutch Average}}
   | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name|{{{1}}}}}}|?Average Offspring Per Birth}}}}|{{#var:litter_size}}
+
   | {{#if:{{Q|{{{1}}}|Average Offspring Per Birth}}|{{Q|{{{1}}}|Average Offspring Per Birth}}
     | {{#if:{{#var:gestation}}|1|-}}
+
     | {{#if:{{Q|{{{1}}}|Gestation Period Days}}|1|-}}
 
   }}
 
   }}
 
}}
 
}}
| {{#if:{{#vardefineecho:mate|{{#show:{{{?Name|{{{1}}}}}}|?Mate Mtb Hours}}}}|{{#var:mate}}|-}}
+
| {{Q|{{{1}}}|Animal Filth Rate}}
| {{#show:{{{?Name|{{{1}}}}}}|?Animal Filth Rate}}
+
| {{#if:{{Q|{{{1}}}|Roam Mtb Days}}|{{Q|{{{1}}}|Roam Mtb Days}}|-}}
| {{#if:{{#vardefineecho:roam|{{#show:{{{?Name|{{{1}}}}}}|?Roam Mtb Days}}}}|{{#var:roam}}|-}}
+
| {{Q|{{{1}}}|Min Comfortable Temperature}}
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Nuzzle Mtb Hours#|Never}}
+
| {{Q|{{{1}}}|Max Comfortable Temperature}}
| {{#show:{{{?Name|{{{1}}}}}}|?Min Comfortable Temperature}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Max Comfortable Temperature}}
 
 
|-
 
|-
</includeonly><noinclude>{{Documentation}}</noinclude>
+
</includeonly>
 +
<noinclude>[[Category:Customized table templates]]</noinclude>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)