Difference between revisions of "Template:Animals/Row"

From RimWorld Wiki
Jump to navigation Jump to search
(At request.)
Line 3: Line 3:
 
Usage:  <code><nowiki>{{Animals/Row|*name*}}</nowiki></code>
 
Usage:  <code><nowiki>{{Animals/Row|*name*}}</nowiki></code>
  
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.
+
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.
  
 
Example:
 
Example:
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
! Animal !! Min. Handling Skill  !! Guard !! Attack !! Rescue !! Haul !! Diet !! Blocked by Fences !! Hunger Rate<ref>Nutrition lost per day.</ref>!! data-sort-type=number|Offspring Per Year !! data-sort-type=number|Meat Yield !! data-sort-type=number|Leather Yield !! Average DPS !! Move Speed !! Health Scale !! <abbr title="Chance of revenge when harmed">Manhunter<br>(Hunt)</abbr> !! <abbr title="Chance of revenge on a failed tame attempt">Manhunter<br>(Tame)</abbr> !! <abbr title="Nutrition of meat and milk out for each nutrition in, when babies are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Baby Slaughter)</abbr> !! <abbr title="Nutrition of meat and milk out for each nutrition in, when adults are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Adult Slaughter)</abbr>
+
! Animal !! Type !! Wildness !! Min. Handling Skill !! Guard !! Attack !! Rescue !! Haul !! Diet !! Hunger Rate<ref>Nutrition lost per day.</ref>!! Health Scale !! Average DPS !! Move Speed !! Manhunter<br>(Hunt) !! Manhunter<br>(Tame) !! Blocked by Fences!! 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> !! Nutrition Efficiency (adult slaughter)<ref name=nutr_eff>Nutrition out from meat and milk for each nutrition in, calculated for a system of 8 adult females and 2 adult male, with the assumptions of constant pregnancy and immediate milking.</ref> !! Nutrition Efficiency (baby slaughter)<ref name=nutr_eff/>
 
|-
 
|-
{{Animals/Row|Warg}}
+
{{Animals/Row|Yorkshire terrier}}
 
|}
 
|}
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<!--Offspring per year calculation-->
 
{{#if:{{#vardefineecho:gestation|{{#show:{{{?Name|{{{1}}}}}}|?Egg Laying Interval }}}}
 
  |
 
  | {{#vardefine:gestation|{{#show:{{{?Name|{{{1}}}}}}|?Gestation Period Days}}
 
  }}
 
}}
 
{{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name|{{{1}}}}}}|?Eggs Per Clutch Average}}}}
 
  |
 
  | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name|{{{1}}}}}}|?Average Offspring Per Birth}}}}
 
    |
 
    | {{#if:{{#var:gestation}}|{{#vardefine:litter_size|1}}}}
 
  }}
 
}}
 
 
<!--Nutrition efficiency calculation-->
 
<!--Nutrition efficiency calculation-->
{{#vardefine:females|4}}{{#vardefine:males|1}}
+
{{#vardefine:females|8}}{{#vardefine:males|2}}
 
{{#vardefine:milk_nutrition_production
 
{{#vardefine:milk_nutrition_production
 
  | {{#if: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}}
 
  | {{#if: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}}
Line 45: Line 32:
 
}}
 
}}
 
<!--Actual row-->
 
<!--Actual row-->
![[{{{?Name|{{{1|Horse}}} }}}]]
+
 
 +
![[{{{?Name|{{{1|Horse}}} }}}]]<br>[[{{#show:{{{?Name|{{{1|Horse}}} }}}|?Image#}}|32px]]
 +
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Type#}}
 +
| {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Wildness#}} * 100}}%
 
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Minimum Handling Skill#}}
 
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Minimum Handling Skill#}}
 
| {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
Line 52: Line 42:
 
| {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Haul#}}      | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Haul#}}      | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}}
 
| {{#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|alt=Plants|link=]]
  | dendrovorous = [[File:Wood.png|24px|Wood|link=]]
+
| dendrovorous = [[File:Wood.png|24px|alt=Wood|link=]]
  | raw meat and corpses = [[File:MeatBig cropped.png|Meat|link=]][[File:DownedRefugee.png|32px|Corpses|link=]]
+
| carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]]
  | carnivorous = [[File:MeatBig cropped.png|Meat|link=]]
+
| omnivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Potato plant.png|22px|alt=Plants|link=]]}}
  | omnivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]]&nbsp;[[File:Potato plant.png|22px|Plants|link=]]}}
+
| herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|alt=Plants|link=]]&nbsp;[[File:Wood.png|24px|alt=Wood|link=]]}}
  | herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|Plants|link=]]&nbsp;[[File:Wood.png|24px|Wood|link=]]}}
+
| carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}}
  | carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|Eggs|link=]]}}
+
| 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=]]}}
  | omnivorous and animal products
+
| raw meat and corpses = [[File:MeatBig cropped.png|alt=Meat|link=]]
  | omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|Meat|link=]]&nbsp;[[File:Eggs fertilized cropped.png|Eggs|link=]]&nbsp;[[File:Potato plant.png|22px|Plants|link=]]}}
+
| none = -}}
  | none = -
+
| {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Base Hunger Rate#}} * 1.6 round2}}
}}
+
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Health Scale#}}
| {{#if:{{#show: {{{?Name|{{{1|Horse}}} }}}|?Roam Mtb Days}}|[[File:check.png|24px|link=]]|[[File:ex.png|24px|link=]]}}
 
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Real Hunger Rate|-}}
 
| {{#if:{{#var:gestation}}|{{#expr: {{#var:litter_size}}/{{#var:gestation}}*60 round 1}}|-}}
 
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Meat Yield|-}}
 
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Leather Yield|-}}
 
 
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Mob Average DPS#}}
 
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Mob Average DPS#}}
 
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Move Speed Base#}}
 
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Move Speed Base#}}
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Health Scale#}}
 
 
| {{#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}}%|-}}
+
| {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Turn Manhunter Chance When Taming#}} *100}}%
| {{#iferror: {{#expr:{{#var:baby_slaughter_production}}/{{#var:baby_slaughter_consumption}} round 2}} | -}}  
+
| {{#if:{{#show: {{{?Name|{{{1|Horse}}} }}}|?Roam Mtb Days}}|[[File:check.png|24px|link=]]|[[File:ex.png|24px|link=]]}}
| {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | -}}
+
| {{#show: {{{?Name|{{{1|Horse}}} }}}|?Animal Filth Rate#}}
 +
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Meat Yield#|-}}
 +
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Leather Yield#|-}}
 +
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Market Value Base#|-}}
 +
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Life Expectancy#|-}}
 +
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Maturity Age#|-}}
 +
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Gestation Period Days#|-}}
 +
| {{Q|{{{?Name|{{{1|Horse}}} }}}|Nuzzle Mtb Hours#|Never}}
 +
| {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | NA}}
 +
| {{#iferror: {{#expr:{{#var:baby_slaughter_production}}/{{#var:baby_slaughter_consumption}} round 2}} | NA}}
 
|-
 
|-
 
</includeonly>
 
</includeonly>
 
<noinclude>[[Category:Customized table templates]]</noinclude>
 
<noinclude>[[Category:Customized table templates]]</noinclude>

Revision as of 01:53, 6 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 "Wild boar" if not given - used for testing/preview.

Example:

Animal Type Wildness Min. Handling Skill Guard Attack Rescue Haul Diet Hunger Rate[1] Health Scale Average DPS Move Speed Manhunter
(Hunt)
Manhunter
(Tame)
Blocked by Fences Filth Rate[2] Meat Yield[3] Leather Yield[4] Market Value Life Expectancy (Years) Maturity Age (Years) Gestation Period (Days)[5] Nuzzle Interval (Hours)[6] Nutrition Efficiency (adult slaughter)[7] Nutrition Efficiency (baby slaughter)[7]
Yorkshire terrier
Yorkshireterrier east.png
Animal 0% 0 Check.png Check.png Ex.png Ex.png 0.24 0.4 1.09 3.1 0% 0% Ex.png 1 45 20 100 15 0.3 10 12 0.53 0.55
  1. Nutrition lost per day.
  2. The average amount of filth produced on constructed floors per 1000 cells walked.
  3. Amounts given are at 100% butchery efficiency.
  4. Amounts given are at 100% butchery efficiency.
  5. For egglayers, this is both the incubation period and the egg-laying interval.
  6. Mean time between nuzzles.
  7. 7.0 7.1 Nutrition out from meat and milk for each nutrition in, calculated for a system of 8 adult females and 2 adult male, with the assumptions of constant pregnancy and immediate milking.