Difference between revisions of "Template:Animals/Row"
Jump to navigation
Jump to search
(trimmed down columns - the less important ones have been moved to Template:Animals/Additional/Row) |
|||
Line 1: | Line 1: | ||
− | <noinclude> | + | <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. |
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 " | + | 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: | Example: | ||
{| {{STDT| sortable c_08 text-center}} | {| {{STDT| sortable c_08 text-center}} | ||
− | ! Animal | + | ! Animal !! Min. Handling Skill !! Guard !! Attack !! Rescue !! Haul !! Diet !! Blocked by Fences !! Hunger Rate<ref>Nutrition lost per day.</ref>!! Offspring Per Year !! Meat Yield !! 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> |
|- | |- | ||
{{Animals/Row|Yorkshire terrier}} | {{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| | + | {{#vardefine:females|4}}{{#vardefine:males|1}} |
{{#vardefine:milk_nutrition_production | {{#vardefine:milk_nutrition_production | ||
| {{#if: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}} | | {{#if: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}} | ||
Line 32: | Line 45: | ||
}} | }} | ||
<!--Actual row--> | <!--Actual row--> | ||
− | |||
![[{{{?Name|{{{1|Horse}}} }}}]] | ![[{{{?Name|{{{1|Horse}}} }}}]] | ||
− | |||
− | |||
| {{#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 42: | Line 52: | ||
| {{#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|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=]] |
− | | carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]] | + | | carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]] |
− | | omnivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}} | + | | omnivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}} |
− | | herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|alt=Plants|link=]] [[File:Wood.png|24px|alt=Wood|link=]]}} | + | | herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|alt=Plants|link=]] [[File:Wood.png|24px|alt=Wood|link=]]}} |
− | | carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}} | + | | carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|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=]]}} | + | | 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=]] |
− | | none = -}} | + | | none = - |
− | | {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|? | + | }} |
− | | {{ | + | | {{#if:{{#show: {{{?Name|{{{1|Horse}}} }}}|?Roam Mtb Days}}|[[File:check.png|24px|link=]]|[[File:ex.png|24px|link=]]}} |
+ | | {{#expr: {{#show: {{{?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}}%|-}} |
− | | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | -}} | | {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | -}} | ||
| {{#iferror: {{#expr:{{#var:baby_slaughter_production}}/{{#var:baby_slaughter_consumption}} round 2}} | -}} | | {{#iferror: {{#expr:{{#var:baby_slaughter_production}}/{{#var:baby_slaughter_consumption}} round 2}} | -}} |
Revision as of 18:34, 27 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 "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) |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Yorkshire terrier | 0 | 0.24 | 11.6 | 45 | 20 | 1.09 | 3.1 | 0.4 | 0% | - | 0.53 | 0.55 |
- ↑ Nutrition lost per day.