Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
m (Undo revision 72725 by Rookwood (talk))
Tag: Undo
m (Removed unnecessary leather yield conditional)
Line 20: Line 20:
 
| {{#expr: {{#show: {{{1|Wild boar}}}|?Base Hunger Rate#}} * 1.6 round2}}
 
| {{#expr: {{#show: {{{1|Wild boar}}}|?Base Hunger Rate#}} * 1.6 round2}}
 
| {{#show: {{{1|Wild boar}}}|?Meat Yield#}}
 
| {{#show: {{{1|Wild boar}}}|?Meat Yield#}}
| {{#if: {{#show: {{{1|Wild boar}}}|?Leather Yield#}}|{{#show: {{{1|Wild boar}}}|?Leather Yield#}}|-}}
+
| {{#show: {{{1|Wild boar}}}|?Leather Yield#}}
 
| {{#show: {{{1|Wild boar}}}|?Life Expectancy#}}
 
| {{#show: {{{1|Wild boar}}}|?Life Expectancy#}}
 
| {{#show: {{{1|Wild boar}}}|?Maturity Age#}}
 
| {{#show: {{{1|Wild boar}}}|?Maturity Age#}}

Revision as of 16:21, 30 June 2020

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.