Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
m (Changed Category)
(Changed hunger rate to multiply by a factor of the base rate of 1.6 to match in-game info tabs)
Line 21: Line 21:
 
| {{#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#}}
| {{#show: {{{1|Wild boar}}}|?Base Hunger Rate#}}
+
| {{#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#}}|-}}
 
| {{#if: {{#show: {{{1|Wild boar}}}|?Leather Yield#}}|{{#show: {{{1|Wild boar}}}|?Leather Yield#}}|-}}

Revision as of 22:59, 29 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.