Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
(Fixed bad links (due to case sensitivity).)
(Fixed data not displaying. Properties for training have data type boolean which only uses true or false.)
Line 24: Line 24:
 
| {{#show: {{{1|Wild boar}}}|?Maturity Age#}}
 
| {{#show: {{{1|Wild boar}}}|?Maturity Age#}}
 
| {{#show: {{{1|Wild boar}}}|?Minimum Handling Skill#}}
 
| {{#show: {{{1|Wild boar}}}|?Minimum Handling Skill#}}
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Obedience#}} | Yes=[[File:check.png|24px|link=]] | No=[[File:ex.png|24px|link=]]}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Obedience#}} | true=[[File:check.png|24px|link=]] | false=[[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|Wild boar}}}|?Can Train Release#}}  | true=[[File:check.png|24px|link=]] | false=[[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|Wild boar}}}|?Can Train Rescue#}}    | true=[[File:check.png|24px|link=]] | false=[[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=]]}}</includeonly>
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Haul#}}      | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}</includeonly>

Revision as of 17:36, 5 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.