Difference between revisions of "Template:Animals/Row"
Jump to navigation
Jump to search
(moved nutrition consumption calculation to Template:Nutrition_Consumption) |
|||
Line 12: | Line 12: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<!--Nutrition efficiency calculation--> | <!--Nutrition efficiency calculation--> | ||
− | + | {{#vardefine:females|9}}{{#vardefine:males|1}} | |
{{#vardefine:milk_nutrition_production | {{#vardefine:milk_nutrition_production | ||
− | | {{#if: {{#show: {{{1|{{ | + | | {{#if: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Milk Amount#}} |
− | | {{#expr:{{#var:females}}*{{#show: {{{1|{{ | + | | {{#expr:{{#var:females}}*{{#show: {{{1|{{{?Name|Horse}}} }}}|?Milk Amount#}}/{{#show: {{{1|{{#var:default_animal}}}}}|?Milking Interval Days#}}*0.05}} |
| 0 | | 0 | ||
}} | }} | ||
}} | }} | ||
{{#vardefine:baby_slaughter_production | {{#vardefine:baby_slaughter_production | ||
− | | {{#expr:{{Meat Production| {{{1|{{ | + | | {{#expr:{{Meat Production| {{{1|{{{?Name|Horse}}} }}} | Baby | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
}}{{#vardefine:baby_slaughter_consumption | }}{{#vardefine:baby_slaughter_consumption | ||
− | | {{Nutrition Consumption| {{{1|{{ | + | | {{Nutrition Consumption| {{{1|{{{?Name|Horse}}} }}} | Baby | {{#var:females}} | {{#var:males}}}} |
}} | }} | ||
{{#vardefine:adult_slaughter_production | {{#vardefine:adult_slaughter_production | ||
− | | {{#expr:{{Meat Production| {{{1|{{ | + | | {{#expr:{{Meat Production| {{{1|{{{?Name|Horse}}} }}} | Adult | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
}} | }} | ||
{{#vardefine:adult_slaughter_consumption | {{#vardefine:adult_slaughter_consumption | ||
− | | {{Nutrition Consumption| {{{1|{{ | + | | {{Nutrition Consumption| {{{1|{{{?Name|Horse}}} }}} | Adult | {{#var:females}} | {{#var:males}}}} |
}} | }} | ||
<!--Actual row--> | <!--Actual row--> | ||
− | ![[{{{1| | + | ![[{{{1|{{{?Name|Horse}}} }}}]] |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Type#}} |
− | | {{#expr: {{#show: {{{1| | + | | {{#expr: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Wildness#}} * 100}}% |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Minimum Handling Skill#}} |
− | | {{#switch: {{#show: {{{1| | + | | {{#switch: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#switch: {{#show: {{{1| | + | | {{#switch: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Can Train Attack#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#switch: {{#show: {{{1| | + | | {{#switch: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Can Train Rescue#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#switch: {{#show: {{{1| | + | | {{#switch: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Can Train Haul#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#switch: {{#show: {{{1| | + | | {{#switch: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Diet#}} |
| herbivorous = [[File:Potato plant.png|22px|alt=Plants|link=]] | | herbivorous = [[File:Potato plant.png|22px|alt=Plants|link=]] | ||
| dendrovorous = [[File:Wood.png|24px|alt=Wood|link=]] | | dendrovorous = [[File:Wood.png|24px|alt=Wood|link=]] | ||
Line 48: | Line 48: | ||
| omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}} | | omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}} | ||
| raw meat and corpses = [[File:MeatBig cropped.png|alt=Meat|link=]]}} | | raw meat and corpses = [[File:MeatBig cropped.png|alt=Meat|link=]]}} | ||
− | | {{#expr: {{#show: {{{1| | + | | {{#expr: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Base Hunger Rate#}} * 1.6 round2}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Mob Average DPS#}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Move Speed Base#}} |
− | | {{#expr: {{#show: {{{1| | + | | {{#expr: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Turn Manhunter Chance When Attacked#}} *100}}% |
− | | {{#expr: {{#show: {{{1| | + | | {{#expr: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Turn Manhunter Chance When Taming#}} *100}}% |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Animal Filth Rate#}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Meat Yield#}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Leather Yield#}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Market Value Base#}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Life Expectancy#}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Maturity Age#}} |
− | | {{#show: {{{1| | + | | {{#show: {{{1|{{{?Name|Horse}}} }}}|?Gestation Period Days#}} |
− | | {{#if: {{#show: {{{1| | + | | {{#if: {{#show: {{{1|{{{?Name|Horse}}} }}}|?Nuzzle Mtb Hours#}}|{{#show: {{{1|{{{?Name|Horse}}} }}}|?Nuzzle Mtb Hours#}}|Never}} |
| {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | NA}} | | {{#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}} | | {{#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 12:15, 24 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 "Wild boar" if not given - used for testing/preview.
Example:
Animal | Type | Wildness | Min. Handling Skill | Guard | Attack | Rescue | Haul | Diet | Hunger Rate[1] | Average DPS | Move Speed | Manhunter (Hunt) |
Manhunter (Tame) |
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 | Animal | 0% | 0 | 0.24 | 1.09 | 3.1 | 0% | 0% | 1 | 45 | 20 | 100 | 15 | 0.3 | 10 | 12 | 0.55 | 0.62
|
- ↑ Nutrition lost per day.
- ↑ The average amount of filth produced on constructed floors per 1000 cells walked.
- ↑ Amounts given are at 100% butchery efficiency.
- ↑ Amounts given are at 100% butchery efficiency.
- ↑ For egglayers, this is both the incubation period and the egg-laying interval.
- ↑ Mean time between nuzzles.
- ↑ 7.0 7.1 Nutrition out from meat and milk for each nutrition in, calculated for a system of 9 adult females and 1 adult male, with the assumptions of constant pregnancy and immediate milking.