Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
Tag: Undo
(made the hover text for the diets more accurate, changed animal products image to milk)
Line 53: Line 53:
 
| {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Diet#}}
 
| {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Diet#}}
 
   | herbivorous = [[File:Potato plant.png|22px|Plants|link=]]
 
   | herbivorous = [[File:Potato plant.png|22px|Plants|link=]]
   | dendrovorous = [[File:Wood.png|24px|Wood|link=]]
+
   | dendrovorous = [[File:Wood.png|24px|Trees|link=]]
   | raw meat and corpses = [[File:MeatBig cropped.png|Meat|link=]][[File:DownedRefugee.png|32px|Corpses|link=]]
+
   | raw meat and corpses = [[File:MeatBig cropped.png|Raw meat|link=]][[File:DownedRefugee.png|32px|Corpses|link=]]
 
   | carnivorous = [[File:MeatBig cropped.png|Meat|link=]]
 
   | carnivorous = [[File:MeatBig cropped.png|Meat|link=]]
 
   | omnivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]] [[File:Potato plant.png|22px|Plants|link=]]}}
 
   | omnivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]] [[File:Potato plant.png|22px|Plants|link=]]}}
   | herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|Plants|link=]] [[File:Wood.png|24px|Wood|link=]]}}
+
   | herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|Plants|link=]] [[File:Wood.png|24px|Trees|link=]]}}
 
   | carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]] [[File:Eggs fertilized cropped.png|Eggs|link=]]}}
 
   | carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]] [[File:Eggs fertilized cropped.png|Eggs|link=]]}}
   | omnivorous and animal products
+
   | omnivorous and animal products = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]] [[File:Milk.png|Animal products|22px|link=]] [[File:Potato plant.png|22px|Plants|link=]]}}
 
   | omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]] [[File:Eggs fertilized cropped.png|Eggs|link=]] [[File:Potato plant.png|22px|Plants|link=]]}}
 
   | omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]] [[File:Eggs fertilized cropped.png|Eggs|link=]] [[File:Potato plant.png|22px|Plants|link=]]}}
 
   | none = -
 
   | none = -

Revision as of 09:58, 7 October 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)
Warg
Warg.png
5 Check.png Check.png Ex.png Ex.png Raw meatCorpses Ex.png 0.4 10.3 196 56 4.24 5 1.4 100% 40% 0.67 0.96
  1. Nutrition lost per day.