Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
(improved sorting)
(oops, the columns were the wrong way round)
Line 72: Line 72:
 
| {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Turn Manhunter Chance When Attacked#}} *100}}%
 
| {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Turn Manhunter Chance When Attacked#}} *100}}%
 
| {{#if:{{#vardefineecho:tame_manhunt|{{#show: {{{?Name|{{{1|Horse}}} }}}|?Turn Manhunter Chance When Taming#}}}}|{{#expr:{{#var:tame_manhunt}}*100}}%|-}}
 
| {{#if:{{#vardefineecho:tame_manhunt|{{#show: {{{?Name|{{{1|Horse}}} }}}|?Turn Manhunter Chance When Taming#}}}}|{{#expr:{{#var:tame_manhunt}}*100}}%|-}}
 +
| {{#iferror: {{#expr:{{#var:baby_slaughter_production}}/{{#var:baby_slaughter_consumption}} round 2}} | -}}
 
| {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | -}}
 
| {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | -}}
| {{#iferror: {{#expr:{{#var:baby_slaughter_production}}/{{#var:baby_slaughter_consumption}} round 2}} | -}}
 
 
|-
 
|-
 
</includeonly>
 
</includeonly>
 
<noinclude>[[Category:Customized table templates]]</noinclude>
 
<noinclude>[[Category:Customized table templates]]</noinclude>

Revision as of 06:51, 28 September 2021

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 "Horse" if not given - used for testing/preview.

Example:

Animal Min. Handling Skill   Guard Attack Rescue Haul Diet Blocked by Fences Hunger Rate[1] Offspring Per Year Meat Yield Leather Yield Average DPS Move Speed Health Scale Manhunter
(Hunt)
Manhunter
(Tame)
Nutrition Efficiency (Baby Slaughter) Nutrition Efficiency (Adult Slaughter)
Yorkshire terrier 0 Check.png Check.png Ex.png Ex.png Ex.png 0.24 11.6 45 20 1.09 3.1 0.4 0% 0% 0.55 0.53
  1. Nutrition lost per day.