Difference between revisions of "Template:Animals/Additional/Row"
Jump to navigation
Jump to search
(maybe this reduces the include size?) |
(fix) |
||
Line 12: | Line 12: | ||
|} | |} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | ! [[{{{1}}}]] | + | ! [[{{{?Name|{{{1}}}}}}]] |
− | | {{#show:{{{1}}}|?Type}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Type}} |
− | | {{#expr: {{#show:{{{1}}}|?Wildness}} * 100}}% | + | | {{#expr: {{#show:{{{?Name|{{{1}}}}}}|?Wildness}} * 100}}% |
− | | {{#show:{{{1}}}|?Body Size}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Body Size}} |
− | | {{#show:{{{1}}}|?Mass - Adult}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Mass - Adult}} |
− | | {{#show:{{{1}}}|?Health Scale}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Health Scale}} |
− | | {{#show:{{{1}}}|?Market Value Base}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Market Value Base}} |
− | | {{#expr: {{#show:{{{1}}}|?Juvenile Age}}*60 round 2}} | + | | {{#expr: {{#show:{{{?Name|{{{1}}}}}}|?Juvenile Age}}*60 round 2}} |
− | | {{#expr: {{#show:{{{1}}}|?Maturity Age}}*60 round 2}} | + | | {{#expr: {{#show:{{{?Name|{{{1}}}}}}|?Maturity Age}}*60 round 2}} |
− | | {{#show:{{{1}}}|?Life Expectancy}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Life Expectancy}} |
− | | {{#if:{{#vardefineecho:egg_interval|{{#show:{{{1}}}|?Egg Laying Interval}}}}|{{#var:egg_interval}} | + | | {{#if:{{#vardefineecho:egg_interval|{{#show:{{{?Name|{{{1}}}}}}|?Egg Laying Interval}}}}|{{#var:egg_interval}} |
− | | {{#if:{{#vardefineecho:gestation|{{#show:{{{1}}}|?Gestation Period Days}}}}|{{#var:gestation}} | + | | {{#if:{{#vardefineecho:gestation|{{#show:{{{?Name|{{{1}}}}}}|?Gestation Period Days}}}}|{{#var:gestation}} |
| - | | - | ||
}} | }} | ||
}} | }} | ||
− | | {{#if:{{#vardefineecho:clutch_size|{{#show:{{{1}}}|?Eggs Per Clutch Average}}}}|{{#var:clutch_size}} | + | | {{#if:{{#vardefineecho:clutch_size|{{#show:{{{?Name|{{{1}}}}}}|?Eggs Per Clutch Average}}}}|{{#var:clutch_size}} |
− | | {{#if:{{#vardefineecho:litter_size|{{#show:{{{1}}}|?Average Offspring Per Birth}}}}|{{#var:litter_size}} | + | | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name|{{{1}}}}}}|?Average Offspring Per Birth}}}}|{{#var:litter_size}} |
| {{#if:{{#var:gestation}}|1|-}} | | {{#if:{{#var:gestation}}|1|-}} | ||
}} | }} | ||
}} | }} | ||
− | | {{#show:{{{1}}}|?Animal Filth Rate}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Animal Filth Rate}} |
− | | {{#if:{{#vardefineecho:roam|{{#show:{{{1}}}|?Roam Mtb Days}}}}|{{#var:roam}}|-}} | + | | {{#if:{{#vardefineecho:roam|{{#show:{{{?Name|{{{1}}}}}}|?Roam Mtb Days}}}}|{{#var:roam}}|-}} |
− | | {{#show:{{{1}}}|?Min Comfortable Temperature}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Min Comfortable Temperature}} |
− | | {{#show:{{{1}}}|?Max Comfortable Temperature}} | + | | {{#show:{{{?Name|{{{1}}}}}}|?Max Comfortable Temperature}} |
|- | |- | ||
</includeonly> | </includeonly> | ||
<noinclude>[[Category:Customized table templates]]</noinclude> | <noinclude>[[Category:Customized table templates]]</noinclude> |
Revision as of 11:47, 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 |