Difference between revisions of "Template:Meat Production"
Jump to navigation
Jump to search
(creating template - most of the code is from Template:Animals/Row, but I plan on improving the base Animals page, so having it as template is useful) |
m |
||
Line 1: | Line 1: | ||
− | {{#vardefine:animal|{{{1 | {{PAGENAME}}}}}}}<!-- | + | <includeonly>{{#vardefine:animal|{{{1 | {{PAGENAME}}}}}}}<!-- |
-->{{#vardefine:slaughter_age|{{{2 | Baby}}}}}<!-- | -->{{#vardefine:slaughter_age|{{{2 | Baby}}}}}<!-- | ||
-->{{#vardefine:females|{{{3 | 1}}}}}<!-- | -->{{#vardefine:females|{{{3 | 1}}}}}<!-- | ||
Line 44: | Line 44: | ||
-->{{#ifeq: {{#var:slaughter_age}} | Baby | {{#var:baby_slaughter_meat_production}} | {{#var:adult_slaughter_meat_production}}}} | -->{{#ifeq: {{#var:slaughter_age}} | Baby | {{#var:baby_slaughter_meat_production}} | {{#var:adult_slaughter_meat_production}}}} | ||
− | <noinclude> | + | </includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:24, 22 September 2021
Returns the nutrition per day produced from the slaughtering of offspring. This calculation assumes that there is no time between pregnancies.
Usage
- The first parameter, if present, will specify which animal to generate the template for. If absent,
{{PAGENAME}}
will be used. - The second parameter determines whether the offspring are slaughtered upon birth or upon reaching adulthood. Baby for baby slaughter, Adult for adult slaughter. Defaults to Baby.
- The third parameter is the number of females in the system. Defaults to 1.
- The fourth parameter is the number of males in the system. Defaults to 0. This doesn't actually do anything, but is there to be consistent with Template: Nutrition Consumption
Examples
Single inexplicably pregnant mare
{{Meat Production| Horse | Adult}}
result: 2.5225225225225
5 mares, 5 stallions
{{Meat Production| Horse | Adult | 5 | 5 }}
result: 12.612612612613
Chick slaughter
{{Meat Production| Chicken | Baby}}
result: 0.588
Chicken slaughter
{{Meat Production| Chicken | Adult}}
result: 2.1
See also: Template:Nutrition Consumption, Template:Leather Production
The above documentation is transcluded from Template:Meat Production/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. |