Difference between revisions of "Template:Animals/Row"
Jump to navigation
Jump to search
m |
|||
(32 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <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 --> | |
− | | {{# | + | {{#vardefine:females|4}}{{#vardefine:males|1}} |
− | | {{# | + | {{#vardefine:milk_nutrition_production |
− | + | | {{#if: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}} | |
− | + | | {{#expr:{{#var:females}}*{{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}}/{{#show: {{{?Name|{{{1|Horse}}} }}}|?Milking Interval Days#}}*0.05}} | |
− | | {{# | + | | 0 |
− | | {{# | + | }} |
− | + | }} | |
− | + | {{#vardefine:baby_slaughter_production | |
− | | | + | | {{#expr:{{Meat Production| {{{?Name|{{{1|Horse}}} }}} | Baby | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
− | | | + | }}{{#vardefine:baby_slaughter_consumption |
− | | | + | | {{Nutrition Consumption| {{{?Name|{{{1|Horse}}} }}} | Baby | {{#var:females}} | {{#var:males}}}} |
− | | | + | }} |
− | | | + | {{#vardefine:adult_slaughter_production |
− | | | + | | {{#expr:{{Meat Production| {{{?Name|{{{1|Horse}}} }}} | Adult | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
− | + | }} | |
− | | | + | {{#vardefine:adult_slaughter_consumption |
− | | {{#show: {{{1| | + | | {{Nutrition Consumption| {{{?Name|{{{1|Horse}}} }}} | Adult | {{#var:females}} | {{#var:males}}}} |
− | | | + | }} |
− | | | + | <!-- Actual row --> |
− | | | + | ![[{{{?Name|{{{1|Horse}}} }}}]]<br>[[{{#show:{{{?Name|{{{1|Horse}}} }}}|?Image#}}|32px]] |
− | | | + | | {{#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 Attack#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | | + | | {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Rescue#}} | 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#}} |
− | | | + | | 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]] | |
− | + | | raw meat and corpses = [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]] [[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)]] [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]] | ||
+ | | omnivorous grazer = [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]] [[File:Potato plant.png|24px|Plants|link=]] [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]] | ||
+ | | herbivorous and dendrovorous = [[File:Potato plant.png|22px|Plants|link=]] [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]] [[File:Wood.png|24px|Trees|link=Trees]] | ||
+ | | carnivorous and ovivorous = [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]] [[File:Egg fertilized.png|28px|Eggs|link=Eggs]] | ||
+ | | omnivorous and animal products = [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]] [[File:Milk.png|Animal products|24px|link=Category:Animal Products]] [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]] | ||
+ | | omnivorous and ovivorous = [[File:Meat big a.png|30px|Meat|link=Meat (disambiguation)]] [[File:Egg fertilized.png|28px|Eggs|link=Eggs]] [[File:Potatoes.png|24px|Vegetables|link=Category:Vegetarian]] | ||
+ | | none = - | ||
+ | }} | ||
+ | | {{#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}}} }}}|?Move Speed Base#}} | ||
+ | | {{#show: {{{?Name|{{{1|Horse}}} }}}|?Health Scale#}} | ||
+ | | {{#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: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> |
Latest revision as of 00:35, 1 December 2022
Summary[edit]
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[edit]
{{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[edit]
{| {{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> |- {{Animals/Row}} |- {{Animals/Row|Yorkshire terrier}} |} <references/>
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) |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Horse |
1 | 0.68 | - | 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. |