Difference between revisions of "Template:Animals/Row"
Jump to navigation
Jump to search
m |
(simplification of parameter name. separate columns for icon and name) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- Offspring per year calculation --> | <!-- Offspring per year calculation --> | ||
− | {{#if:{{#vardefineecho:gestation|{{#show:{{{?Name | + | {{#if:{{#vardefineecho:gestation|{{#show:{{{?Name}}}|?Egg Laying Interval }}}} |
| | | | ||
− | | {{#vardefine:gestation|{{#show:{{{?Name | + | | {{#vardefine:gestation|{{#show:{{{?Name}}}|?Gestation Period Days}} |
}} | }} | ||
}} | }} | ||
− | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name | + | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name}}}|?Eggs Per Clutch Average}}}} |
| | | | ||
− | | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name | + | | {{#if:{{#vardefineecho:litter_size|{{#show:{{{?Name}}}|?Average Offspring Per Birth}}}} |
| | | | ||
| {{#if:{{#var:gestation}}|{{#vardefine:litter_size|1}}}} | | {{#if:{{#var:gestation}}|{{#vardefine:litter_size|1}}}} | ||
Line 16: | Line 16: | ||
{{#vardefine:females|4}}{{#vardefine:males|1}} | {{#vardefine:females|4}}{{#vardefine:males|1}} | ||
{{#vardefine:milk_nutrition_production | {{#vardefine:milk_nutrition_production | ||
− | | {{#if: {{#show: {{{?Name | + | | {{#if: {{#show: {{{?Name}}}|?Milk Amount#}} |
− | | {{#expr:{{#var:females}}*{{#show: {{{?Name | + | | {{#expr:{{#var:females}}*{{#show: {{{?Name}}}|?Milk Amount#}}/{{#show: {{{?Name}}}|?Milking Interval Days#}}*0.05}} |
| 0 | | 0 | ||
}} | }} | ||
}} | }} | ||
{{#vardefine:baby_slaughter_production | {{#vardefine:baby_slaughter_production | ||
− | | {{#expr:{{Meat Production| {{{?Name | + | | {{#expr:{{Meat Production| {{{?Name}}} | Baby | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
}}{{#vardefine:baby_slaughter_consumption | }}{{#vardefine:baby_slaughter_consumption | ||
− | | {{Nutrition Consumption| {{{?Name | + | | {{Nutrition Consumption| {{{?Name}}} | Baby | {{#var:females}} | {{#var:males}}}} |
}} | }} | ||
{{#vardefine:adult_slaughter_production | {{#vardefine:adult_slaughter_production | ||
− | | {{#expr:{{Meat Production| {{{?Name | + | | {{#expr:{{Meat Production| {{{?Name}}} | Adult | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
}} | }} | ||
{{#vardefine:adult_slaughter_consumption | {{#vardefine:adult_slaughter_consumption | ||
− | | {{Nutrition Consumption| {{{?Name | + | | {{Nutrition Consumption| {{{?Name}}} | Adult | {{#var:females}} | {{#var:males}}}} |
}} | }} | ||
<!-- Actual row --> | <!-- Actual row --> | ||
− | ! | + | ! {{Icon Small|{{{?Name}}}|32}} |
− | | {{#show: {{{?Name | + | ! style="text-align:left" | {{DLC Icons|{{{?Name}}} }} |
− | | {{#switch: {{#show: {{{?Name | + | | {{#show: {{{?Name}}}|?Minimum Handling Skill#}} |
− | | {{#switch: {{#show: {{{?Name | + | | {{#switch: {{#show: {{{?Name}}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#switch: {{#show: {{{?Name | + | | {{#switch: {{#show: {{{?Name}}}|?Can Train Attack#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#switch: {{#show: {{{?Name | + | | {{#switch: {{#show: {{{?Name}}}|?Can Train Rescue#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#switch: {{#show: {{{?Name | + | | {{#switch: {{#show: {{{?Name}}}|?Can Train Haul#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
+ | | {{#switch: {{#show: {{{?Name}}}|?Diet#}} | ||
| herbivorous = [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]] [[File:Potato plant.png|24px|Plants|link=]] | | herbivorous = [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]] [[File:Potato plant.png|24px|Plants|link=]] | ||
| dendrovorous = [[File:Woodlog b.png|24px|Trees|link=Trees]] | | dendrovorous = [[File:Woodlog b.png|24px|Trees|link=Trees]] | ||
Line 52: | Line 53: | ||
| none = - | | none = - | ||
}} | }} | ||
− | | {{#if:{{#show: {{{?Name | + | | {{#if:{{#show: {{{?Name}}}|?Roam Mtb Days}}|[[File:check.png|24px|link=]]|[[File:ex.png|24px|link=]]}} |
− | | {{Q|{{{?Name | + | | {{Q|{{{?Name}}}|Real Hunger Rate|-}} |
| {{#if:{{#var:gestation}}|{{#expr: {{#var:litter_size}}/{{#var:gestation}}*60 round 1}}|-}} | | {{#if:{{#var:gestation}}|{{#expr: {{#var:litter_size}}/{{#var:gestation}}*60 round 1}}|-}} | ||
− | | {{Q|{{{?Name | + | | {{Q|{{{?Name}}}|Meat Yield|-}} |
− | | {{Q|{{{?Name | + | | {{Q|{{{?Name}}}|Leather Yield|-}} |
− | | {{#show: {{{?Name | + | | {{#show: {{{?Name}}}|?Mob Average DPS#}} |
− | | {{#show: {{{?Name | + | | {{#show: {{{?Name}}}|?Move Speed Base#}} |
− | | {{#show: {{{?Name | + | | {{#show: {{{?Name}}}|?Health Scale#}} |
− | | {{#expr: {{#show: {{{?Name | + | | {{#expr: {{#show: {{{?Name}}}|?Turn Manhunter Chance When Attacked#}} *100}}% |
− | | {{#if:{{#vardefineecho:tame_manhunt|{{#show: {{{?Name | + | | {{#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: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}} | -}} | ||
|- | |- | ||
</includeonly><noinclude>{{Documentation}}</noinclude> | </includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 09:15, 5 April 2024
Summary
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.
Example
{| {{STDT| sortable c_08 text-center}} ! colspan="2" | Animal ! Min. Handling Skill ! Guard ! Attack ! Rescue ! Haul ! Diet ! [[Pen animal|Pens]] ! data-sort-type=number | 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 ! data-sort-type=number | Average DPS ! Move Speed ! data-sort-type=number | Health Scale ! <abbr title="Chance of revenge when harmed">[[Mental break#Manhunter|Manhunter]]<br/>(Hunt)</abbr> ! <abbr title="Chance of revenge on a failed tame attempt">Manhunter<br/>(Tame)</abbr> ! data-sort-type=number | <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> ! data-sort-type=number | <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> |- {{Animals/Row|?Name=Horse}} |- {{Animals/Row|?Name=Yorkshire terrier}} |} <references/>
Animal | Min. Handling Skill | Guard | Attack | Rescue | Haul | Diet | Pens | 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) | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Horse | 2 | 0.68 | 9 | 336 | 96 | 2.06 | 5.8 | 1.75 | 0% | 0% | 0.59 | 1.37 | |||||||
Yorkshire terrier | 0 | 0.24 | 11.6 | 45 | 20 | 1.09 | 3.1 | 0.4 | 0% | 0% | 0.55 | 0.53 |
- ↑ Nutrition lost per day.
The above documentation is transcluded from Template:Animals/Row/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |