Difference between revisions of "Template:Meat Production/doc"
Jump to navigation
Jump to search
m |
m |
||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
==Usage== | ==Usage== | ||
− | The first parameter, if present, will specify which animal to generate the template for. If absent, <code><nowiki>{{PAGENAME}}</nowiki></code> will be used. | + | *The first parameter, if present, will specify which animal to generate the template for. If absent, <code><nowiki>{{PAGENAME}}</nowiki></code> 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 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 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. | + | *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== | ==Examples== | ||
− | ===Single inexplicably pregnant | + | ===Single inexplicably pregnant mare=== |
<pre> | <pre> | ||
{{Meat Production| Horse | Adult}} | {{Meat Production| Horse | Adult}} | ||
</pre> | </pre> | ||
− | + | result: {{Meat Production| Horse | Adult}} | |
− | {{Meat Production| Horse | Adult}} | + | ===5 mares, 5 stallions=== |
− | |||
− | ===5 | ||
<pre> | <pre> | ||
{{Meat Production| Horse | Adult | 5 | 5 }} | {{Meat Production| Horse | Adult | 5 | 5 }} | ||
</pre> | </pre> | ||
− | + | result: {{Meat Production| Horse | Adult | 5 | 5}} | |
− | {{Meat Production| Horse | Adult | 5 | 5}} | ||
− | |||
===Chick slaughter=== | ===Chick slaughter=== | ||
<pre> | <pre> | ||
{{Meat Production| Chicken | Baby}} | {{Meat Production| Chicken | Baby}} | ||
</pre> | </pre> | ||
− | + | result: {{Meat Production| Chicken | Baby}} | |
− | {{Meat Production| Chicken | Baby}} | ||
− | |||
===Chicken slaughter=== | ===Chicken slaughter=== | ||
<pre> | <pre> | ||
{{Meat Production| Chicken | Adult}} | {{Meat Production| Chicken | Adult}} | ||
</pre> | </pre> | ||
− | + | result: {{Meat Production| Chicken | Adult}} | |
− | {{Meat Production| Chicken | Adult}} | + | |
+ | See also: [[Template:Nutrition Consumption]], [[Template:Leather Production]] | ||
+ | |||
+ | <includeonly>[[Category:Math templates]]</includeonly> | ||
+ | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 00:12, 6 October 2022
Returns the nutrition per day produced from the slaughtering of offspring. This calculation assumes that there is no time between pregnancies.
Usage[edit]
- 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[edit]
Single inexplicably pregnant mare[edit]
{{Meat Production| Horse | Adult}}
result: 2.5225225225225
5 mares, 5 stallions[edit]
{{Meat Production| Horse | Adult | 5 | 5 }}
result: 12.612612612613
Chick slaughter[edit]
{{Meat Production| Chicken | Baby}}
result: 0.6
Chicken slaughter[edit]
{{Meat Production| Chicken | Adult}}
result: 2.1
See also: Template:Nutrition Consumption, Template:Leather Production