Difference between revisions of "Template:Crop table row"
Jump to navigation
Jump to search
(New template) |
m (Fix spacing) |
||
Line 113: | Line 113: | ||
{{#vardefine:harvest_2_qty|{{#if:{{{harvest_2_qty|}}}|{{{harvest_2_qty}}}|0}}}} | {{#vardefine:harvest_2_qty|{{#if:{{{harvest_2_qty|}}}|{{{harvest_2_qty}}}|0}}}} | ||
| {{ItemIcon|{{{crop}}} Seeds}} [[{{{crop}}}]] | | {{ItemIcon|{{{crop}}} Seeds}} [[{{{crop}}}]] | ||
− | | {{ItemIcon|{{#var:harvest_1_name}}}} {{#var:harvest_1_name}}{{#ifeq:{{#var:harvest_1_qty}}|1||× {{#var:harvest_1_qty}}}}{{#ifeq:{{#var:harvest_2_qty}}|0||<br />{{ItemIcon|{{{harvest_2_name}}}}} {{{harvest_2_name}}}{{#ifeq:{{#var:harvest_2_qty}}|1||× {{#var:harvest_2_qty}}}}}} | + | | {{ItemIcon|{{#var:harvest_1_name}}}} {{#var:harvest_1_name}}{{#ifeq:{{#var:harvest_1_qty}}|1||×{{#var:harvest_1_qty}}}}{{#ifeq:{{#var:harvest_2_qty}}|0||<br />{{ItemIcon|{{{harvest_2_name}}}}} {{{harvest_2_name}}}{{#ifeq:{{#var:harvest_2_qty}}|1||×{{#var:harvest_2_qty}}}}}} |
| align="{{#if:{{{refined_to|}}}|left|center}}" | {{#if:{{{refined_to|}}}|[[{{{refined_to}}}]]|---}} | | align="{{#if:{{{refined_to|}}}|left|center}}" | {{#if:{{{refined_to|}}}|[[{{{refined_to}}}]]|---}} | ||
| align="center" data-sort-value="{{#ifeq:{{{pickable}}}|1|{{#ifeq:{{#var:harvest_2_qty}}|0|1|2}}|0}}" | {{#ifeq:{{{pickable}}}|1|Yes{{#ifeq:{{#var:harvest_2_qty}}|0||¹}}|No}} | | align="center" data-sort-value="{{#ifeq:{{{pickable}}}|1|{{#ifeq:{{#var:harvest_2_qty}}|0|1|2}}|0}}" | {{#ifeq:{{{pickable}}}|1|Yes{{#ifeq:{{#var:harvest_2_qty}}|0||¹}}|No}} |
Latest revision as of 06:54, 8 September 2020
Generates one row of the table of crops on the Agriculture page
Parameter | Description | Type | Status | |
---|---|---|---|---|
Crop name | crop | The name of the crop
| Line | required |
First harvest item | harvest_1_name | The name of the first item that can be obtained by harvesting the crop
| Line | optional |
First harvest quantity | harvest_1_qty | The number of the first harvest item obtained from one crop
| Number | optional |
Second harvest item | harvest_2_name | The name of the second item that can be obtained by harvesting the crop | Line | optional |
Second harvest quantity | harvest_2_qty | The number of the second harvest item obtained from one crop
| Number | optional |
Refined to | refined_to | The item to which the harvest item can be refined
| Line | optional |
Pickable | pickable | Whether the harvest can be picked with the RMB rather than having to destroy the crop
| Boolean | optional |
Speed | speed | The growth speed (1=Slow, 2=Average, 3=Fast) | Number | required |
Min rain | min_rain | The minimum rain level to grow | Number | required |
Max rain | max_rain | The maximum rain level to grow | Number | required |
Min temperature | min_temp | The minimum temperature to grow | Number | required |
Max temperature | max_temp | The maximum temperature to grow | Number | required |
Max growth phase | max_growth_phase | The highest growth phase number the crop reaches | Number | required |
Example
Crop Name | Harvest | Refined to | Pickable | Speed | Min Rain | Max Rain | Min Temp (°C) | Max Temp (°C) | Growth Phases | Dead Phases |
---|---|---|---|---|---|---|---|---|---|---|
Barley | Barley | Barley Grain | No | Slow | 70 | 310 | 1 | 26 | ||
Maize | Maize Ear | --- | No | Fast | 140 | 400 | 19 | 40 | ||
Red Bell Pepper | Green Pepper | --- | Yes | Slow | 100 | 400 | 12 | 32 | ||
Jute | Jute×2 | Jute Fibers | No | Average | 100 | 410 | 11 | 37 |