Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
m (Don't mind me. Just re-ordering. :>)
(Swapping in cropped assets, adding alt text)
Line 9: Line 9:
 
| {{#expr: {{#show: {{{1|Boar}}}|?Wildness#}} * 100}}%  
 
| {{#expr: {{#show: {{{1|Boar}}}|?Wildness#}} * 100}}%  
 
| {{#switch: {{#show: {{{1|Boar}}}|?Diet#}}
 
| {{#switch: {{#show: {{{1|Boar}}}|?Diet#}}
| Herbivorous = [[File:Potato Plant.png|20px|link=]]
+
| Herbivorous = [[File:Potato Plant.png|22px|alt=Plants|link=]]
| Dendrovorous = [[File:Wood.png|24px|link=]]
+
| Dendrovorous = [[File:Wood.png|24px||alt=Wood|link=]]
| Carnivorous = [[File:MeatBig.png|28px|link=]]
+
| Carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]]
| Omnivorous = {{nowrap|[[File:MeatBig.png|28px|link=]][[File:Potato Plant.png|20px|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|20px|link=]]  [[File:Wood.png|24px|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.png|28px|link=]][[File:Egg fertilized.png|24px|link=]]}}
+
| Carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggslink=]]}}
| Omnivorous and ovivorous = {{nowrap|[[File:MeatBig.png|28px|link=]][[File:Egg fertilized.png|24px|link=]][[File:Potato Plant.png|20px|link=]]}}}}
+
| Omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggslink=]] [[File:Potato Plant.png|22px|alt=Plants|link=]]}}}}
 
| {{#show: {{{1|Boar}}}|?Base Hunger Rate#}}
 
| {{#show: {{{1|Boar}}}|?Base Hunger Rate#}}
 
| {{#show: {{{1|Boar}}}|?Move Speed Base#}}
 
| {{#show: {{{1|Boar}}}|?Move Speed Base#}}

Revision as of 10:13, 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 | | | |