Editing Template:Animals/Row

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly>
+
<noinclude>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.
<!-- Offspring per year calculation -->
+
 
{{#if:{{#vardefineecho:gestation|{{#show:{{{?Name}}}|?Egg Laying Interval }}}}
+
Usage:  <code><nowiki>{{Animals/Row|*name*}}</nowiki></code>
  |
+
 
  | {{#vardefine:gestation|{{#show:{{{?Name}}}|?Gestation Period Days}}
+
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.
  }}
+
{| {{STDT| sortable c_08 text-center}}
}}
+
! Animal !! Type !! Wildness !! Min. Handling Skill  !! Guard !! Attack !! Rescue !! Haul !! Diet !! Hunger Rate<ref>Nutrition lost per day.</ref>!! Average DPS !! Move Speed !! Manhunter<br>(Hunt) !! Manhunter<br>(Tame) !! Filth Rate<ref>The average amount of filth produced on constructed floors per 1000 cells walked.</ref>!! Meat Yield<ref>Amounts given are at 100% butchery efficiency.</ref>!! Leather Yield<ref>Amounts given are at 100% butchery efficiency.</ref>!! Market Value !! Life Expectancy (Years) !! Maturity Age (Years) !! Gestation Period (Days)<ref>For egglayers, this is both the incubation period and the egg-laying interval.</ref> !! Nuzzle Interval (Hours)<ref>Mean time between nuzzles.</ref>
{{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name}}}|?Eggs Per Clutch Average}}}}
+
|-{{Animals/Row|Yorkshire terrier}}
  |
+
|}
  | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name}}}|?Average Offspring Per Birth}}}}
+
</noinclude><includeonly>
    |
+
![[{{{1|Wild boar}}}]]
    | {{#if:{{#var:gestation}}|{{#vardefine:litter_size|1}}}}
+
| {{#show: {{{1|Wild boar}}}|?Type#}}
  }}
+
| {{#expr: {{#show: {{{1|Wild boar}}}|?Wildness#}} * 100}}%
}}
+
| {{#show: {{{1|Wild boar}}}|?Minimum Handling Skill#}}
<!-- Nutrition efficiency calculation -->
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
{{#vardefine:females|4}}{{#vardefine:males|1}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Attack#}}   | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
{{#vardefine:milk_nutrition_production
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Rescue#}}   | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
| {{#if: {{#show: {{{?Name}}}|?Milk Amount#}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Can Train Haul#}}     | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
    | {{#expr:{{#var:females}}*{{#show: {{{?Name}}}|?Milk Amount#}}/{{#show: {{{?Name}}}|?Milking Interval Days#}}*0.05}}
+
| {{#switch: {{#show: {{{1|Wild boar}}}|?Diet#}}
    | 0
+
| herbivorous = [[File:Potato plant.png|22px|alt=Plants|link=]]
  }}
+
| dendrovorous = [[File:Wood.png|24px|alt=Wood|link=]]
}}
+
| carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]]
{{#vardefine:baby_slaughter_production
+
| omnivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Potato plant.png|22px|alt=Plants|link=]]}}
| {{#expr:{{Meat Production| {{{?Name}}} | Baby | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}}
+
| herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|alt=Plants|link=]]&nbsp;[[File:Wood.png|24px|alt=Wood|link=]]}}
}}{{#vardefine:baby_slaughter_consumption
+
| carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}}
| {{Nutrition Consumption| {{{?Name}}} | Baby | {{#var:females}} | {{#var:males}}}}
+
| omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|alt=Eggs|link=]]&nbsp;[[File:Potato plant.png|22px|alt=Plants|link=]]}}
}}
+
| raw meat and corpses = [[File:MeatBig cropped.png|alt=Meat|link=]]}}
{{#vardefine:adult_slaughter_production
+
| {{#expr: {{#show: {{{1|Wild boar}}}|?Base Hunger Rate#}} * 1.6 round2}}
| {{#expr:{{Meat Production| {{{?Name}}} | Adult | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}}
+
| {{#show: {{{1|Wild boar}}}|?Mob Average DPS#}}
}}
+
| {{#show: {{{1|Wild boar}}}|?Move Speed Base#}}
{{#vardefine:adult_slaughter_consumption
+
| {{#show: {{{1|Wild boar}}}|?Turn Manhunter Chance When Attacked#}}
| {{Nutrition Consumption| {{{?Name}}} | Adult | {{#var:females}} | {{#var:males}}}}
+
| {{#show: {{{1|Wild boar}}}|?Turn Manhunter Chance When Taming#}}
}}
+
| {{#show: {{{1|Wild boar}}}|?Animal Filth Rate#}}
<!-- Actual row -->
+
| {{#show: {{{1|Wild boar}}}|?Meat Yield#}}
! {{Icon Small|{{{?Name}}}|32}}
+
| {{#show: {{{1|Wild boar}}}|?Leather Yield#}}
! style="text-align:left" | {{DLC Icons|{{{?Name}}} }}
+
| {{#show: {{{1|Wild boar}}}|?Market Value Base#}}
| {{#show: {{{?Name}}}|?Minimum Handling Skill#}}
+
| {{#show: {{{1|Wild boar}}}|?Life Expectancy#}}
| {{#switch: {{#show: {{{?Name}}}|?Can Train Guard#}}  | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
+
| {{#show: {{{1|Wild boar}}}|?Maturity Age#}}
| {{#switch: {{#show: {{{?Name}}}|?Can Train Attack#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
+
| {{#show: {{{1|Wild boar}}}|?Gestation Period Days#}}
| {{#switch: {{#show: {{{?Name}}}|?Can Train Rescue#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
+
| {{#if: {{#show: {{{1|Wild boar}}}|?Nuzzle Mtb Hours#}}|{{#show: {{{1|Wild boar}}}|?Nuzzle Mtb Hours#}}|Never}}
| {{#switch: {{#show: {{{?Name}}}|?Can Train Haul#}}  | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
+
</includeonly>
| {{#switch: {{#show: {{{?Name}}}|?Diet#}}
+
<noinclude>[[Category:Customized table templates]]</noinclude>
  | herbivorous =                [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]]&nbsp;[[File:Potato plant.png|24px|Plants|link=]]
 
  | dendrovorous =                [[File:Woodlog b.png|24px|Trees|link=Trees]]
 
  | raw meat and corpses =       [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]]&nbsp;[[File:DownedRefugee.png|24px|Corpses|link=Corpse]]
 
  | carnivorous =                [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]]
 
  | omnivorous =                  [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]]&nbsp;[[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]]
 
  | omnivorous grazer =          [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]]&nbsp;[[File:Potato plant.png|24px|Plants|link=]]&nbsp;[[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]]
 
  | herbivorous, dendrovorous =  [[File:Potato plant.png|22px|Plants|link=]]&nbsp;[[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]]&nbsp;[[File:Wood.png|24px|Trees|link=Trees]]
 
  | carnivorous, ovivorous =      [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]]&nbsp;[[File:Egg fertilized.png|28px|Eggs|link=Eggs]]
 
  | omnivorous, animal products = [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]]&nbsp;[[File:Milk.png|Animal products|24px|link=Category:Animal Products]]&nbsp;[[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]]
 
  | omnivorous, ovivorous =      [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]]&nbsp;[[File:Egg fertilized.png|28px|Eggs|link=Eggs]]&nbsp;[[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]]
 
  | none = -
 
}}
 
| {{#if:{{#show: {{{?Name}}}|?Roam Mtb Days}}|[[File:check.png|24px|link=]]|[[File:ex.png|24px|link=]]}}
 
| {{Q|{{{?Name}}}|Real Hunger Rate|-}}
 
| {{#if:{{#var:gestation}}|{{#expr: {{#var:litter_size}}/{{#var:gestation}}*60 round 1}}|-}}
 
| {{Q|{{{?Name}}}|Meat Yield|-}}
 
| {{Q|{{{?Name}}}|Leather Yield|-}}
 
| {{#show: {{{?Name}}}|?Mob Average DPS#}}
 
| {{#show: {{{?Name}}}|?Move Speed Base#}}
 
| {{#show: {{{?Name}}}|?Health Scale#}}
 
| {{#expr: {{#show: {{{?Name}}}|?Turn Manhunter Chance When Attacked#}} *100}}%
 
| {{#if:{{#vardefineecho:tame_manhunt|{{#show: {{{?Name}}}|?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}} | -}}
 
|-
 
</includeonly><noinclude>{{Documentation}}</noinclude>
 

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)