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

From RimWorld Wiki
Jump to navigation Jump to search
(Removing invalid self-closed HTML tag)
(moved health scale to the main page)
Line 7: Line 7:
 
Example:
 
Example:
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
! Animal !! Type !! Wildness !! Body Size !! <abbr title=kg>Mass</abbr> !! Health Scale !! data-sort-type=number|Market Value !! data-sort-type=number|<abbr title=days>Juvenile Age</abbr> !! data-sort-type=number|<abbr title=days>Maturity Age</abbr> !! <abbr title=years>Life Expectancy</abbr> !! data-sort-type=number|<abbr title=days>Gestation Period !! data-sort-type=number|Average Offspring !! Filth Rate !! data-sort-type=number|Roam Interval !! <abbr title=°C>Min Temperature</abbr> !! <abbr title=°C>Max Temperature</abbr>
+
! Animal !! Type !! Wildness !! Body Size !! <abbr title=kg>Mass</abbr> !! data-sort-type=number|Market Value !! data-sort-type=number|<abbr title=days>Juvenile Age</abbr> !! data-sort-type=number|<abbr title=days>Maturity Age</abbr> !! <abbr title=years>Life Expectancy</abbr> !! data-sort-type=number|<abbr title=days>Gestation Period !! data-sort-type=number|Average Offspring !! Filth Rate !! data-sort-type=number|Roam Interval !! <abbr title=°C>Min Temperature</abbr> !! <abbr title=°C>Max Temperature</abbr>
 
|-
 
|-
 
{{Animals/Additional/Row|Horse}}
 
{{Animals/Additional/Row|Horse}}
Line 18: Line 18:
 
| {{#show:{{{?Name|{{{1}}}}}}|?Body Size}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Body Size}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Mass - Adult}}
 
| {{#show:{{{?Name|{{{1}}}}}}|?Mass - Adult}}
| {{#show:{{{?Name|{{{1}}}}}}|?Health Scale}}
 
 
| {{#if:{{#vardefineecho:val|{{#show:{{{?Name|{{{1}}}}}}|?Market Value Base}}}}|{{#var:val}}|-}}
 
| {{#if:{{#vardefineecho:val|{{#show:{{{?Name|{{{1}}}}}}|?Market Value Base}}}}|{{#var:val}}|-}}
 
| {{#if:{{#vardefineecho:juv_age|{{#show:{{{?Name|{{{1}}}}}}|?Juvenile Age}}}}|{{#expr:{{#var:juv_age}}*60 round 2}}|-}}
 
| {{#if:{{#vardefineecho:juv_age|{{#show:{{{?Name|{{{1}}}}}}|?Juvenile Age}}}}|{{#expr:{{#var:juv_age}}*60 round 2}}|-}}

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