Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
(Added category.)
(Added switch option needed for Warg.)
Line 20: Line 20:
 
| herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|alt=Plants|link=]] [[File:Wood.png|24px|alt=Wood|link=]]}}
 
| herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|alt=Plants|link=]] [[File:Wood.png|24px|alt=Wood|link=]]}}
 
| carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}}
 
| carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}}
| omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}}}}
+
| omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}}
 +
| raw meat and corpses = [[File:MeatBig cropped.png|alt=Meat|link=]]}}
 
| {{#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}}}|?Mob Average DPS#}}
 
| {{#show: {{{1|Wild boar}}}|?Mob Average DPS#}}

Revision as of 02:15, 11 February 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 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.