Editing Template:Animal Rearing Row

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly><!--
+
<noinclude>Usage:  <code><nowiki>{{Animal Rearing Row|*name*}}</nowiki></code>
 
+
Example:
VARIABLES
+
{| class="wikitable sortable"
-->{{#vardefine:milkPerDay    | {{Q|{{{animal}}}|Daily Milk Average}} }}<!--
+
! Animal !! Diet !! Produces !! <abbr title="Units of nutrition for milk">Produce per day</abbr>  !! Meat per day (baby slaughter) !! Consumption per day (baby slaughter) !! Overall efficiency (baby slaughter) !! Meat per day (adult slaughter) !! Consumption per day (adult slaughter) !! Overall efficiency (adult slaughter)
-->{{#vardefine:gestationTime | {{Q|{{{animal}}}|Gestation Period Days|{{Q|{{{animal}}}|Egg Laying Interval}} }} }}<!--
+
|-{{Animal Rearing Row|Cow}}
-->{{#vardefine:restRate      | {{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} }}<!-- See [[Rest#Positive]] for an explanation of the formula
+
|}</noinclude><includeonly>
 
+
! [[{{{1}}}]]
TABLE -->
+
! {{#show: {{{1}}}|?Diet}}
|-
+
! {{#if:{{#show:{{{1}}}|?Wool Name}}|{{#show: {{{1}}}|?Wool Name}}
| [[{{{animal}}}]]{{#show:Chicken egg (fert.)|Nutrition}}
+
  | {{#if:{{#show:{{{1}}}|?Daily Milk Average}}|[[Milk]]}}
| {{#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.)]]}}|–}} }} }}
+
! {{#expr:{{Meat Production|{{{1}}}|Baby}} round 3}}
| {{#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}}|–}} }} }}
+
! {{#expr:{{Nutrition Consumption|{{{1}}}|Baby}} round 3}}
| {{#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|{{{1}}}|Adult}} round 3}}
| {{#expr: {{Meat Production|{{{animal}}}|Baby}} round 2}}
+
! {{#expr:{{Nutrition Consumption|{{{1}}}|Adult}} round 3}}
| {{#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}}
+
</includeonly>
| {{#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>
 

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)