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>[[Category: Customized table templates]] {{Documentation wanted}}
 +
 
 +
Usage:  <code><nowiki>{{Animal Rearing Row|*name*}}</nowiki></code>
 +
Example:
 +
{| 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</abbr>
 +
! rowspan="2" | Produces
 +
! rowspan="2" | Produce Per Day
 +
! rowspan="2" | Produced Nutrition Per Day
 +
! rowspan="2" | <abbr title="Assuming they sleep on the ground and mate as soon as possible.">Males per 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">Meat Per Day</abbr>
 +
! <abbr title="Units of nutrition consumed by a single adult per day">Consumption Per Day</abbr>
 +
! <abbr title="(Milk + Meat)/Consumption">Overall Efficiency</abbr>
 +
! <abbr title="Units of nutrition of meat produced per female per day when adults are slaughtered">Meat Per Day</abbr>
 +
! <abbr title="Units of nutrition consumed per female per day, including the offspring's consumption up to adulthood>Consumption Per Day</abbr>
 +
! <abbr title="(Milk + Meat)/Consumption">Overall 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}}
 +
|}</noinclude><includeonly><!--
  
 
VARIABLES
 
VARIABLES
Line 10: Line 32:
 
| [[{{{animal}}}]]{{#show:Chicken egg (fert.)|Nutrition}}
 
| [[{{{animal}}}]]{{#show:Chicken egg (fert.)|Nutrition}}
 
| {{#show: {{{animal}}}|?Diet}}
 
| {{#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}}}}|}}
+
| {{#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}}}|?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:{{{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}}|}} }}
+
| {{#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}} }}
 
| {{#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: {{Meat Production|{{{animal}}}|Baby}} round 2}}
Line 21: Line 43:
 
| {{#expr: {{Nutrition Consumption|{{{animal}}}|Adult|1|{{#var:malesPerFemale}} }} 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}}
 
| {{#expr: ({{Meat Production|{{{animal}}}|Adult}} + {{#var:milkPerDay|0}}*0.05)/{{Nutrition Consumption|{{{animal}}}|Adult|1|{{#var:malesPerFemale}} }} round 3}}
</includeonly><noinclude>
+
</includeonly>
{{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)