Difference between revisions of "Template:Animal Rearing Row"
Jump to navigation
Jump to search
(Adding eggs to consideration, as it was present in the previous (manual) version of the table. Also splitting nutrition from produce so 1) absolute production is shown and 2) so that nutrtion can be sorted for correctly without non-edibles getting in the way.) |
(moved documentation to its own page) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly><!-- |
− | + | ||
− | + | VARIABLES | |
+ | -->{{#vardefine:milkPerDay | {{Q|{{{animal}}}|Daily Milk Average}} }}<!-- | ||
+ | -->{{#vardefine:gestationTime | {{Q|{{{animal}}}|Gestation Period Days|{{Q|{{{animal}}}|Egg Laying Interval}} }} }}<!-- | ||
+ | -->{{#vardefine:restRate | {{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} }}<!-- See [[Rest#Positive]] for an explanation of the formula | ||
+ | |||
+ | TABLE --> | ||
|- | |- | ||
− | + | | [[{{{animal}}}]]{{#show:Chicken egg (fert.)|Nutrition}} | |
− | + | | {{#show: {{{animal}}}|?Diet}} | |
− | + | | {{#ifeq:{{#expr:{{#if:{{#show:{{{animal}}}|?Roam Mtb Days}}|1|0}} or {{#ifeq: {{#expr: {{#show:{{{animal}}}|?Wildness}} < 0.08}}|1|1|0}} }}|0|{{#expr:12 - 6*{{#show:{{{animal}}}|?Wildness}}}}|–}} | |
− | + | | {{#if:{{#show:{{{animal}}}|?Wool Name}}|{{#show: {{{animal}}}|?Wool Name}} | {{#if:{{#var:milkPerDay}}|{{#show: {{{animal}}}|?Milk Name}}| {{#if:{{#show:{{{animal}}}|?Eggs Per Season Average}}|[[{{{animal}}} egg (fert.)|Egg (fert.)]]{{#ifeq:{{#show:{{{animal}}}|?Can Lay Unfertilized Eggs}}|true|<nowiki> </nowiki>& [[{{{animal}}} egg (unfert.)|(unfert.)]]}}|–}} }} }} | |
− | + | | {{#if:{{#show:{{{animal}}}|?Daily Wool Average#}}|{{#expr:{{#show:{{{animal}}}|?Daily Wool Average#}} }} | {{#if:{{#var:milkPerDay}}|{{#var:milkPerDay}}|{{#if:{{#show:{{{animal}}}|?Eggs Per Season Average}}|{{#expr:{{#show:{{{animal}}}|?Eggs Per Season Average}}/15 round 2}}|–}} }} }} | |
− | + | | {{#if:{{#show:{{#show:{{{animal}}}|?Milk Name#}}|?Nutrition}}|{{#expr:{{#var:milkPerDay}}*{{#show:Milk|?Nutrition#}} }}|{{#if:{{#show:{{{animal}}}|?Eggs Per Season Average}}|{{#expr:{{#show:{{{animal}}} egg (fert.)|?Nutrition}}*{{#show:{{{animal}}}|?Eggs Per Season Average}}/15 round 2}}|–}} }} | |
− | + | | {{#vardefineecho:malesPerFemale | {{#expr: 1 / ({{#var:gestationTime}} * (24 - {{#var:restRate}} / {{Q|Animal sleeping spot|Rest Effectiveness}}) / {{Q|{{{animal}}}|Mate Mtb Hours}}) round 2}} }} | |
− | + | | {{#expr: {{Meat Production|{{{animal}}}|Baby}} round 2}} | |
− | + | | {{#expr: {{Nutrition Consumption|{{{animal}}}|Baby|1|{{#var:malesPerFemale}} }} round 2}} | |
− | + | | {{#expr: ({{Meat Production|{{{animal}}}|Baby}} + {{#var:milkPerDay|0}}*0.05)/{{Nutrition Consumption|{{{animal}}}|Baby|1|{{#var:malesPerFemale}} }} round 3}} | |
− | + | | {{#expr: {{Meat Production|{{{animal}}}|Adult}} round 2}} | |
− | + | | {{#expr: {{Nutrition Consumption|{{{animal}}}|Adult|1|{{#var:malesPerFemale}} }} round 2}} | |
− | + | | {{#expr: ({{Meat Production|{{{animal}}}|Adult}} + {{#var:milkPerDay|0}}*0.05)/{{Nutrition Consumption|{{{animal}}}|Adult|1|{{#var:malesPerFemale}} }} round 3}} | |
− | + | </includeonly><noinclude> | |
− | + | {{Documentation}}</noinclude> | |
− | |||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |}< | ||
− | | | ||
− | |||
− | | {{#if:{{#show:{{{ | ||
− | | {{#if:{{#show:{{{ | ||
− | | {{#if:{{#show:{{#show:{{{ | ||
− | | {{#expr:{{ | ||
− | | {{#expr:{{ | ||
− | | {{#expr: | ||
− | | {{#expr:{{Meat Production|{{{ | ||
− | | {{#expr:{{Nutrition Consumption|{{{ | ||
− | | {{#expr:({{Meat Production|{{{ | ||
− | </includeonly> |
Latest revision as of 13:05, 20 December 2023
Overview[edit]
This template creates rows for a table of all animals calculating the efficiency raising them for food. It is used on animals.
Parameters[edit]
animal=
The animal to create a row for.
Example[edit]
{| class="wikitable sortable" ! rowspan="2" | Animal ! rowspan="2" | Diet ! rowspan="2" data-sort-type="number" | <abbr title="The tameness of animals that are blocked by fences or that have low enough wildness does not decay">Tameness Decay Interval (Days)</abbr> ! rowspan="2" | Produces ! rowspan="2" data-sort-type="number" | Produce / Day ! rowspan="2" data-sort-type="number" | Produced Nutrition / Day ! rowspan="2" | <abbr title="Assuming they sleep on the ground and mate as soon as possible.">Males / Female</abbr> ! colspan="3" | Baby Slaughter ! colspan="3" | Adult Slaughter |- ! <abbr title="Units of nutrition of meat produced per female per day when babies are slaughtered, assuming constant pregnancy.">Meat Nutrition / Day</abbr> ! <abbr title="Units of nutrition consumed per day by one adult plus the nutrition consumed by the required males per female.">Consumption / Day</abbr> ! <abbr title="(Milk Nutrition + Meat Nutrition)/Consumption">Overall Nutrition Efficiency</abbr> ! <abbr title="Units of nutrition of meat produced per female per day when adults are slaughtered, assuming constant pregnancy.">Meat Nutrition / Day</abbr> ! <abbr title="Units of nutrition consumed per day by one adult plus the nutrition consumed by the required males per female, including the offspring's consumption up to adulthood.>Consumption / Day</abbr> ! <abbr title="(Milk Nutrition + Meat Nutrition)/Consumption">Overall Nutrition Efficiency</abbr> {{#ask: [[Type::Animal]] [[Diet::!none]] [[Name::!Human]] [[Name::!Megascarab]] [[Name::!Megaspider]] [[Name::!Spelopede]] | format = template | template = Animal Rearing Row | named args = true | ?Name = animal | limit = 100}} |}
Produces:
Animal | Diet | Tameness Decay Interval (Days) | Produces | Produce / Day | Produced Nutrition / Day | Males / Female | Baby Slaughter | Adult Slaughter | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Meat Nutrition / Day | Consumption / Day | Overall Nutrition Efficiency | Meat Nutrition / Day | Consumption / Day | Overall Nutrition Efficiency | |||||||
Alpaca | herbivorous | – | Alpaca wool | 4.5 | – | 0.17 | 0.23 | 0.51 | 0.452 | 1.05 | 1.23 | 0.856 |
Alphabeaver | dendrovorous | 7.5 | – | – | – | 0.13 | 0.24 | 5.42 | 0.043 | 0.74 | 19.99 | 0.037 |
Arctic fox | carnivorous | 7.5 | – | – | – | 0.11 | 0.19 | 0.18 | 1.066 | 0.66 | 0.53 | 1.244 |
Arctic wolf | carnivorous | 6.9 | – | – | – | 0.11 | 0.24 | 0.32 | 0.754 | 1.02 | 1.23 | 0.835 |
Bison | herbivorous | – | Bison wool | 8 | – | 0.17 | 0.5 | 1 | 0.502 | 2.52 | 2.25 | 1.119 |
Boomalope | herbivorous | – | Chemfuel | 11 | – | 0.17 | 0.42 | 1 | 0.969 | 2.1 | 2.39 | 1.11 |
Boomrat | omnivorous grazer | 7.5 | – | – | – | 0.13 | 0.22 | 0.25 | 0.855 | 0.48 | 0.8 | 0.599 |
Capybara | herbivorous | – | – | – | – | 0.19 | 0.29 | 0.43 | 0.67 | 1.16 | 1.29 | 0.901 |
Caribou | herbivorous | – | Milk | 5 | 0.25 | 0.17 | 0.23 | 0.51 | 0.938 | 1.05 | 1.13 | 1.152 |
Cassowary | herbivorous | – | Egg (fert.) | 0.3 | 0.15 | 0.33 | 0.26 | 0.6 | 0.428 | 1.26 | 1.66 | 0.76 |
Cat | carnivorous, ovivorous | – | – | – | – | 0.11 | 0.16 | 0.27 | 0.618 | 0.44 | 0.96 | 0.456 |
Chicken | herbivorous | – | Egg (fert.) & (unfert.) | 1 | 0.25 | 0.74 | 0.6 | 0.39 | 1.539 | 2.1 | 1.84 | 1.141 |
Chinchilla | herbivorous | – | – | – | – | 0.13 | 0.28 | 0.23 | 1.231 | 0.76 | 0.71 | 1.06 |
Cobra | carnivorous, ovivorous | 7.5 | Egg (fert.) | 0.15 | 0.04 | 0.11 | 0.11 | 0.12 | 0.905 | 0.27 | 0.45 | 0.601 |
Cougar | carnivorous, ovivorous | 7.2 | – | – | – | 0.11 | 0.16 | 0.36 | 0.436 | 0.7 | 0.91 | 0.772 |
Cow | herbivorous | – | Milk | 14 | 0.7 | 0.17 | 0.5 | 1 | 1.201 | 2.52 | 2.39 | 1.349 |
Deer | herbivorous | – | – | – | – | 0.19 | 0.31 | 0.38 | 0.812 | 1.48 | 1.11 | 1.337 |
Donkey | herbivorous | – | – | – | – | 0.17 | 0.29 | 0.61 | 0.481 | 1.47 | 1.37 | 1.074 |
Dromedary | herbivorous | – | Milk | 9 | 0.45 | 0.17 | 0.44 | 1 | 0.892 | 2.21 | 2.25 | 1.179 |
Duck | herbivorous | – | Egg (fert.) & (unfert.) | 1 | 0.25 | 0.74 | 0.6 | 0.49 | 1.232 | 2.1 | 2.3 | 0.912 |
Elephant | herbivorous | 7.5 | – | – | – | 0.08 | 0.42 | 2.77 | 0.152 | 2.1 | 7.34 | 0.287 |
Elk | herbivorous | – | Milk | 11 | 0.55 | 0.17 | 0.44 | 1 | 0.991 | 2.21 | 2.39 | 1.154 |
Emu | herbivorous | – | Egg (fert.) | 0.3 | 0.15 | 0.33 | 0.26 | 0.6 | 0.428 | 1.26 | 1.66 | 0.76 |
Fennec fox | carnivorous | 7.5 | – | – | – | 0.11 | 0.19 | 0.18 | 1.066 | 0.66 | 0.53 | 1.244 |
Gazelle | herbivorous | – | – | – | – | 0.19 | 0.22 | 0.29 | 0.773 | 0.87 | 0.62 | 1.395 |
Goat | herbivorous | – | Milk | 4 | 0.2 | 0.2 | 0.23 | 0.43 | 0.999 | 0.94 | 1.07 | 1.066 |
Goose | herbivorous | – | Egg (fert.) & (unfert.) | 0.5 | 0.25 | 0.37 | 0.43 | 0.61 | 0.692 | 2.1 | 2.07 | 1.017 |
Grizzly bear | omnivorous, ovivorous | 7.2 | – | – | – | 0.11 | 0.3 | 0.62 | 0.483 | 1.51 | 1.65 | 0.914 |
Guinea pig | herbivorous | 8.4 | – | – | – | 0.11 | 0.18 | 0.18 | 1.036 | 0.41 | 0.42 | 0.962 |
Hare | herbivorous | 7.5 | – | – | – | 0.13 | 0.22 | 0.21 | 1.041 | 0.48 | 0.66 | 0.729 |
Horse | herbivorous | – | – | – | – | 0.17 | 0.5 | 0.8 | 0.632 | 2.52 | 1.79 | 1.408 |
Husky | omnivorous, ovivorous | – | – | – | – | 0.11 | 0.24 | 0.89 | 0.271 | 1.03 | 3.26 | 0.316 |
Ibex | herbivorous | – | – | – | – | 0.19 | 0.27 | 0.38 | 0.719 | 1.24 | 0.83 | 1.495 |
Iguana | omnivorous grazer | 9 | Egg (fert.) | 0.26 | 0.07 | 0.19 | 0.25 | 0.38 | 0.661 | 0.74 | 1.05 | 0.706 |
Labrador retriever | omnivorous, ovivorous | – | – | – | – | 0.11 | 0.25 | 0.71 | 0.354 | 1.02 | 2.85 | 0.357 |
Lynx | carnivorous, ovivorous | 7.2 | – | – | – | 0.11 | 0.12 | 0.21 | 0.54 | 0.42 | 0.56 | 0.744 |
Megasloth | herbivorous | 6.18 | Megasloth wool | 10 | – | 0.08 | 0.42 | 1.73 | 0.243 | 2.1 | 4.49 | 0.468 |
Monkey | omnivorous grazer | 8.4 | – | – | – | 0.17 | 0.14 | 0.23 | 0.578 | 0.37 | 0.47 | 0.787 |
Muffalo | herbivorous | – | Muffalo wool | 8 | – | 0.17 | 0.5 | 1 | 0.502 | 2.52 | 2.25 | 1.119 |
Ostrich | herbivorous | – | Egg (fert.) | 0.3 | 0.18 | 0.33 | 0.32 | 0.89 | 0.353 | 2.1 | 2.49 | 0.845 |
Panther | carnivorous, ovivorous | 7.2 | – | – | – | 0.11 | 0.16 | 0.36 | 0.436 | 0.7 | 0.91 | 0.772 |
Pig | omnivorous grazer | – | – | – | – | 0.19 | 0.56 | 0.95 | 0.587 | 2.77 | 3.35 | 0.826 |
Polar bear | omnivorous, ovivorous | 6.9 | – | – | – | 0.11 | 0.3 | 0.62 | 0.483 | 1.51 | 1.65 | 0.914 |
Raccoon | omnivorous grazer | 7.5 | – | – | – | 0.13 | 0.25 | 0.36 | 0.696 | 0.74 | 1.03 | 0.719 |
Rat | omnivorous grazer | 9 | – | – | – | 0.13 | 0.2 | 0.18 | 1.104 | 0.44 | 0.54 | 0.817 |
Red fox | carnivorous | 7.5 | – | – | – | 0.11 | 0.19 | 0.18 | 1.066 | 0.66 | 0.53 | 1.244 |
Rhinoceros | herbivorous | 6.6 | – | – | – | 0.08 | 0.32 | 1.85 | 0.171 | 1.58 | 4.22 | 0.374 |
Sheep | herbivorous | – | Sheep wool | 4.5 | – | 0.19 | 0.3 | 0.43 | 0.707 | 1.22 | 1.25 | 0.981 |
Snowhare | herbivorous | 7.5 | – | – | – | 0.13 | 0.22 | 0.21 | 1.041 | 0.48 | 0.66 | 0.729 |
Squirrel | herbivorous | 7.5 | – | – | – | 0.19 | 0.18 | 0.19 | 0.938 | 0.4 | 0.5 | 0.784 |
Thrumbo | herbivorous, dendrovorous | 6.09 | – | – | – | 0.06 | 0.28 | 2.97 | 0.094 | 1.4 | 9.15 | 0.153 |
Timber wolf | carnivorous | 6.9 | – | – | – | 0.11 | 0.24 | 0.32 | 0.754 | 1.02 | 1.23 | 0.835 |
Tortoise | omnivorous grazer | 7.5 | Egg (fert.) | 0.3 | 0.08 | 0.17 | 0.32 | 0.15 | 2.042 | 1.05 | 0.43 | 2.468 |
Toxalope | herbivorous | – | – | – | – | 0.17 | 0.29 | 1 | 0.292 | 1.05 | 2.39 | 0.44 |
Turkey | herbivorous | – | Egg (fert.) | 0.75 | 0.38 | 0.83 | 0.64 | 0.82 | 0.778 | 3.15 | 3 | 1.051 |
Warg | raw meat and corpses | 8.4 | – | – | – | 0.11 | 0.34 | 0.44 | 0.756 | 1.69 | 1.7 | 0.99 |
Waste rat | omnivorous grazer | 9 | – | – | – | 0.13 | 0.24 | 0.18 | 1.34 | 0.6 | 0.54 | 1.106 |
Wild boar | omnivorous grazer | – | – | – | – | 0.19 | 0.31 | 0.57 | 0.541 | 1.31 | 1.94 | 0.678 |
Yak | herbivorous | – | Milk | 11 | 0.55 | 0.17 | 0.44 | 1 | 0.991 | 2.21 | 2.39 | 1.154 |
Yorkshire terrier | omnivorous, ovivorous | – | – | – | – | 0.11 | 0.16 | 0.27 | 0.618 | 0.44 | 0.8 | 0.547 |
The above documentation is transcluded from Template:Animal Rearing 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. |