Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
m (Removed unnecessary leather yield conditional)
(Added filth rate and reorder some columns)
Line 7: Line 7:
 
</noinclude><includeonly>![[{{{1|Wild boar}}}]]
 
</noinclude><includeonly>![[{{{1|Wild boar}}}]]
 
| {{#show: {{{1|Wild boar}}}|?Type#}}
 
| {{#show: {{{1|Wild boar}}}|?Type#}}
| {{#expr: {{#show: {{{1|Wild boar}}}|?Wildness#}} * 100}}%
 
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Diet#}}
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Diet#}}
 
| herbivorous = [[File:Potato plant.png|22px|alt=Plants|link=]]
 
| herbivorous = [[File:Potato plant.png|22px|alt=Plants|link=]]
Line 16: Line 15:
 
| carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}}
 
| carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}}
 
| omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|alt=Eggs|link=]]&nbsp;[[File:Potato plant.png|22px|alt=Plants|link=]]}}}}
 
| omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|alt=Eggs|link=]]&nbsp;[[File:Potato plant.png|22px|alt=Plants|link=]]}}}}
 +
| {{#expr: {{#show: {{{1|Wild boar}}}|?Wildness#}} * 100}}%
 +
| {{#show: {{{1|Wild boar}}}|?Minimum Handling Skill#}}
 
| {{#show: {{{1|Wild boar}}}|?Mob Average DPS#}}
 
| {{#show: {{{1|Wild boar}}}|?Mob Average DPS#}}
 
| {{#show: {{{1|Wild boar}}}|?Move Speed Base#}}
 
| {{#show: {{{1|Wild boar}}}|?Move Speed Base#}}
 +
| {{#show: {{{1|Wild boar}}}|?Animal Filth Rate#}}
 
| {{#expr: {{#show: {{{1|Wild boar}}}|?Base Hunger Rate#}} * 1.6 round2}}
 
| {{#expr: {{#show: {{{1|Wild boar}}}|?Base Hunger Rate#}} * 1.6 round2}}
 
| {{#show: {{{1|Wild boar}}}|?Meat Yield#}}
 
| {{#show: {{{1|Wild boar}}}|?Meat Yield#}}
Line 25: Line 27:
 
| {{#show: {{{1|Wild boar}}}|?Gestation Period Days#}}
 
| {{#show: {{{1|Wild boar}}}|?Gestation Period Days#}}
 
| {{#if: {{#show: {{{1|Wild boar}}}|?Nuzzle Mtb Hours#}}|{{#show: {{{1|Wild boar}}}|?Nuzzle Mtb Hours#}}|Never}}
 
| {{#if: {{#show: {{{1|Wild boar}}}|?Nuzzle Mtb Hours#}}|{{#show: {{{1|Wild boar}}}|?Nuzzle Mtb Hours#}}|Never}}
| {{#show: {{{1|Wild boar}}}|?Minimum Handling Skill#}}
 
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Attack#}}  | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Attack#}}  | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Rescue#}}    | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Rescue#}}    | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Haul#}}      | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}</includeonly>
 
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Haul#}}      | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}</includeonly>

Revision as of 19:20, 1 July 2020

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 page.

Usage: {{Animals/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. The parameter defaults to "Wild boar" if not given - used for testing/preview.