Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
(Fixed data not displaying. Properties for training have data type boolean which only uses true or false.)
(This should fix diet...)
Line 9: Line 9:
 
| {{#expr: {{#show: {{{1|Wild boar}}}|?Wildness#}} * 100}}%  
 
| {{#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=]]
| 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=]]}}
| 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=]]}}}}
 
| {{#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#}}

Revision as of 16:38, 17 February 2017

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.