Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
(Swapping in cropped assets, adding alt text)
m (Hilarious typo)
Line 10: Line 10:
 
| {{#switch: {{#show: {{{1|Boar}}}|?Diet#}}
 
| {{#switch: {{#show: {{{1|Boar}}}|?Diet#}}
 
| Herbivorous = [[File:Potato Plant.png|22px|alt=Plants|link=]]
 
| Herbivorous = [[File:Potato Plant.png|22px|alt=Plants|link=]]
| Dendrovorous = [[File:Wood.png|24px||alt=Wood|link=]]
+
| Dendrovorous = [[File:Wood.png|24px|alt=Wood|link=]]
 
| Carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]]
 
| Carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]]
 
| Omnivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Potato Plant.png|22px|alt=Plants|link=]]}}
 
| Omnivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Potato Plant.png|22px|alt=Plants|link=]]}}

Revision as of 10:15, 21 July 2016

This template pulls the animal statistics from, I think, the animal's main page and formats it into a neat row summary. It is only intended for use on the main 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 "Boar" if not given.

!Boar | Animal | 50% | | 0.3 | 4.6 | | 119 | 36 | 12 | 0.3333 | 4 | | | |