Difference between revisions of "Template:Animals/Additional/Row"
Jump to navigation
Jump to search
(added units and improved sorting) |
(allowed for no market value to be set (dryads)) |
||
Line 11: | Line 11: | ||
{{Animals/Additional/Row|Horse}} | {{Animals/Additional/Row|Horse}} | ||
|} | |} | ||
+ | [[Category:Customized table templates]] | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
! [[{{{?Name|{{{1}}}}}}]] | ! [[{{{?Name|{{{1}}}}}}]] | ||
Line 18: | Line 19: | ||
| {{#show:{{{?Name|{{{1}}}}}}|?Mass - Adult}} | | {{#show:{{{?Name|{{{1}}}}}}|?Mass - Adult}} | ||
| {{#show:{{{?Name|{{{1}}}}}}|?Health Scale}} | | {{#show:{{{?Name|{{{1}}}}}}|?Health Scale}} | ||
− | | {{#show:{{{?Name|{{{1}}}}}}|?Market Value Base}} | + | | {{#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}}|-}} | ||
| {{#if:{{#vardefineecho:mat_age|{{#show:{{{?Name|{{{1}}}}}}|?Maturity Age}}}}|{{#expr:{{#var:mat_age}}*60 round 2}}|-}} | | {{#if:{{#vardefineecho:mat_age|{{#show:{{{?Name|{{{1}}}}}}|?Maturity Age}}}}|{{#expr:{{#var:mat_age}}*60 round 2}}|-}} | ||
Line 38: | Line 39: | ||
|- | |- | ||
</includeonly> | </includeonly> | ||
− |
Revision as of 13:07, 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 |