Difference between revisions of "Template:Nutrition Consumption/doc"
Jump to navigation
Jump to search
(Created page with "Returns the nutrition consumed per day a set number of breeding adults. This calculation assumes that there is no time between pregnancies. ==Usage== The first parameter, if...") |
m (category) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | Returns the nutrition consumed per day a set number of breeding adults. This calculation assumes that there is no time between pregnancies. | + | Returns the nutrition consumed per day for a set number of breeding adults. This calculation assumes that there is no time between pregnancies. |
==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 | + | *The second parameter determines whether the offspring continue to consume up until adulthood, or whether they are slaughtered immediately upon birth. 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. |
==Examples== | ==Examples== | ||
− | ===Single inexplicably pregnant | + | ===Single inexplicably pregnant mare=== |
<pre> | <pre> | ||
{{Nutrition Consumption| Horse | Adult}} | {{Nutrition Consumption| Horse | Adult}} | ||
</pre> | </pre> | ||
− | + | result: {{Nutrition Consumption| Horse | Adult}} | |
− | {{Nutrition Consumption| Horse | Adult}} | + | ===5 mares, 5 stallions=== |
− | |||
− | ===5 | ||
<pre> | <pre> | ||
{{Nutrition Consumption| Horse | Adult | 5 | 5 }} | {{Nutrition Consumption| Horse | Adult | 5 | 5 }} | ||
</pre> | </pre> | ||
− | + | result: {{Nutrition Consumption| Horse | Adult | 5 | 5}} | |
− | {{Nutrition Consumption| Horse | Adult | 5 | 5}} | ||
− | |||
===Chick slaughter=== | ===Chick slaughter=== | ||
<pre> | <pre> | ||
{{Nutrition Consumption| Chicken | Baby}} | {{Nutrition Consumption| Chicken | Baby}} | ||
</pre> | </pre> | ||
− | + | result: {{Nutrition Consumption| Chicken | Baby}} | |
− | {{Nutrition Consumption| Chicken | Baby}} | ||
− | |||
===Chicken slaughter=== | ===Chicken slaughter=== | ||
<pre> | <pre> | ||
{{Nutrition Consumption| Chicken | Adult}} | {{Nutrition Consumption| Chicken | Adult}} | ||
</pre> | </pre> | ||
− | + | result: {{Nutrition Consumption| Chicken | Adult}} | |
− | {{Nutrition Consumption| Chicken | Adult}} | + | |
+ | See also: [[Template:Meat Production]] | ||
+ | |||
+ | <includeonly>[[Category:Math templates]]</includeonly> | ||
+ | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 18:32, 19 November 2022
Returns the nutrition consumed per day for a set number of breeding adults. 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 continue to consume up until adulthood, or whether they are slaughtered immediately upon birth. 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.
Examples[edit]
Single inexplicably pregnant mare[edit]
{{Nutrition Consumption| Horse | Adult}}
result: 1.6753423423423
5 mares, 5 stallions[edit]
{{Nutrition Consumption| Horse | Adult | 5 | 5 }}
result: 11.776711711712
Chick slaughter[edit]
{{Nutrition Consumption| Chicken | Baby}}
result: 0.224
Chicken slaughter[edit]
{{Nutrition Consumption| Chicken | Adult}}
result: 1.67552
See also: Template:Meat Production