Difference between revisions of "Template:Grow Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Temp - ver unfinished)
 
Line 1: Line 1:
<div><li style="display: inline-table;"> {{#vardefine: plantName | {{{1|{{PAGENAME}}}}} <noinclude>{{#vardefine: plantName | Rice plant}} </noinclude>
+
<div><li style="display: inline-table;"> {{#vardefine: plantName | {{{1|{{PAGENAME}}}}} <noinclude>{{#vardefine: plantName | Corn plant}} </noinclude>
 
{| {{STDT| c_24 text-center}}
 
{| {{STDT| c_24 text-center}}
 
! Ground Type
 
! Ground Type
Line 7: Line 7:
 
| Hydroponics
 
| Hydroponics
 
|-  
 
|-  
! Fertility (%)
+
! [[Plants#Fertility|Fertility]] (%)
 
| 70
 
| 70
 
| 100
 
| 100
 
| 140
 
| 140
 
| 280
 
| 280
|-
 
! Real Grow Time (days)
 
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / 0.7}}
 
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / 1.0}}
 
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / 1.4}}
 
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / 2.8}}
 
 
|-
 
|-
! Real Grow Time (days)
+
!{{H:title|link=no|Actual days to grow, taking into account rest time|Real Grow Time (days)}}
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} * (1-0.7)*({{P|Fertility Sensitivity}} + 1) }}
+
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / (((0.7-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1) round 2}}
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} * (1-1.0)*({{P|Fertility Sensitivity}} + 1) }}
+
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / (((1.0-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1) round 2}}
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} * (1-1.4)*({{P|Fertility Sensitivity}} + 1) }}
+
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / (((1.4-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1) round 2}}
| {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} * (1-2.8)*({{P|Fertility Sensitivity}} + 1) }}
+
| {{#if: {{#pos:{{Q|{{#var: plantName}} |SowTags}}|Hydroponic}} | {{#Expr: {{Q|{{#var: plantName}} |Real Grow Days}} / (((2.8-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1) round 2}} | ''N/A''}}
 
|-
 
|-
! Base Yield/day<ref>Per plant</ref>
+
! Base Yield/day<ref>Per plant, assuming Crop Yield Multiplier of 1.0. Note that [[Difficulty]] settings change the Crop Yield Multiplier.</ref>
| 0.74
+
| {{#Expr: {{Q|{{#var: plantName}} |Harvest Yield}}/({{Q|{{#var: plantName}} |Real Grow Days}} / (((0.7-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1)) round 2}}
| 0.94
+
| {{#Expr: {{Q|{{#var: plantName}} |Harvest Yield}}/({{Q|{{#var: plantName}} |Real Grow Days}} / (((1.0-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1)) round 2}}
| 1.2
+
| {{#Expr: {{Q|{{#var: plantName}} |Harvest Yield}}/({{Q|{{#var: plantName}} |Real Grow Days}} / (((1.4-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1)) round 2}}
| 1.8
+
| {{#if: {{#pos:{{Q|{{#var: plantName}} |SowTags}}|Hydroponic}} | {{#Expr: {{Q|{{#var: plantName}} |Harvest Yield}}/({{Q|{{#var: plantName}} |Real Grow Days}} / (((2.8-1)*{{Q|{{#var: plantName}} |Fertility Sensitivity}}) + 1)) round 2}}| ''N/A''}}
 
|}
 
|}
 
<references />
 
<references />

Revision as of 02:16, 17 May 2021

  • {{#vardefine: plantName | Grow Table
    Ground Type Gravel Soil Rich Soil Hydroponics
    Fertility (%) 70 100 140 280
    Real Grow Time (days) 29.8 20.86 14.9 N/A
    Base Yield/day[1] 0.74 1.05 1.48 N/A
    1. Per plant, assuming Crop Yield Multiplier of 1.0. Note that Difficulty settings change the Crop Yield Multiplier.
  • Documentation icon Template documentation[view] [edit] [history] [purge]

    Creates a table with a summary of a given plants productivity in a variety of soils and, if relevant, in a Hydroponics basin.

    Usage

    The first parameter, if present, will designate the plant to be displayed. If absent, the table will default to the displaying the page the template is used on.

    Examples

    {{Grow Table}}
    

    on the Rice plant page would produce:

  • {{#vardefine: plantName | Rice plant
    Ground Type Gravel Soil Rich Soil Hydroponics
    Fertility (%) 70 100 140 280
    Real Grow Time (days) 29.8 20.86 14.9 N/A
    Base Yield/day[1] 0.74 1.05 1.48 N/A
    1. Per plant, assuming Crop Yield Multiplier of 1.0. Note that Difficulty settings change the Crop Yield Multiplier.

  • {{Grow Table | Corn plant}}
    

    on any page would produce:

  • {{#vardefine: plantName | Corn plant
    Ground Type Gravel Soil Rich Soil Hydroponics
    Fertility (%) 70 100 140 280
    Real Grow Time (days) 29.8 20.86 14.9 N/A
    Base Yield/day[1] 0.74 1.05 1.48 N/A
    1. Per plant, assuming Crop Yield Multiplier of 1.0. Note that Difficulty settings change the Crop Yield Multiplier.