Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
m (Missing pipe)
Line 3: Line 3:
 
Usage:  <code><nowiki>{{Animals/Row|*name*}}</nowiki></code>
 
Usage:  <code><nowiki>{{Animals/Row|*name*}}</nowiki></code>
  
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.
+
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.
  
</noinclude>![[{{{1|Boar}}}]]
+
</noinclude>![[{{{1|Wild boar}}}]]
| {{#show: {{{1|Boar}}}|?Type#}}
+
| {{#show: {{{1|Wild boar}}}|?Type#}}
| {{#expr: {{#show: {{{1|Boar}}}|?Wildness#}} * 100}}%  
+
| {{#expr: {{#show: {{{1|Wild boar}}}|?Wildness#}} * 100}}%  
| {{#switch: {{#show: {{{1|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=]]
Line 16: Line 16:
 
| 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=]]}}}}
| {{#show: {{{1|Boar}}}|?Base Hunger Rate#}}
+
| {{#show: {{{1|Wild boar}}}|?Base Hunger Rate#}}
| {{#show: {{{1|Boar}}}|?Move Speed Base#}}
+
| {{#show: {{{1|Wild boar}}}|?Move Speed Base#}}
| {{#show: {{{1|Boar}}}|?Average Melee Damage#}}
+
| {{#show: {{{1|Wild boar}}}|?Average Melee Damage#}}
| {{#show: {{{1|Boar}}}|?Meat Yield#}}
+
| {{#show: {{{1|Wild boar}}}|?Meat Yield#}}
| {{#if: {{#show: {{{1|Boar}}}|?Leather Yield#}}|{{#show: {{{1|Boar}}}|?Leather Yield#}}|-}}
+
| {{#if: {{#show: {{{1|Wild boar}}}|?Leather Yield#}}|{{#show: {{{1|Wild boar}}}|?Leather Yield#}}|-}}
| {{#show: {{{1|Boar}}}|?Life Expectancy#}}
+
| {{#show: {{{1|Wild boar}}}|?Life Expectancy#}}
| {{#show: {{{1|Boar}}}|?Maturity Age#}}
+
| {{#show: {{{1|Wild boar}}}|?Maturity Age#}}
| {{#show: {{{1|Boar}}}|?Minimum Handling Skill#}}
+
| {{#show: {{{1|Wild boar}}}|?Minimum Handling Skill#}}
| {{#switch: {{#show: {{{1|Boar}}}|?Can Train Obedience#}} | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Obedience#}} | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
| {{#switch: {{#show: {{{1|Boar}}}|?Can Train Release#}}  | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Release#}}  | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
| {{#switch: {{#show: {{{1|Boar}}}|?Can Train Rescue#}}    | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Rescue#}}    | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
| {{#switch: {{#show: {{{1|Boar}}}|?Can Train Haul#}}      | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Haul#}}      | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}

Revision as of 22:58, 23 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 "Wild boar" if not given.

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