Difference between revisions of "Template:Crop table row"

From TFC:TNG
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

Template parameters

ParameterDescriptionTypeStatus
Crop namecrop

The name of the crop

Example
Maize
Linerequired
First harvest itemharvest_1_name

The name of the first item that can be obtained by harvesting the crop

Default
The same as the “crop” parameter
Example
Maize Ear
Lineoptional
First harvest quantityharvest_1_qty

The number of the first harvest item obtained from one crop

Default
1
Numberoptional
Second harvest itemharvest_2_name

The name of the second item that can be obtained by harvesting the crop

Lineoptional
Second harvest quantityharvest_2_qty

The number of the second harvest item obtained from one crop

Default
0
Numberoptional
Refined torefined_to

The item to which the harvest item can be refined

Example
Barley Grain
Lineoptional
Pickablepickable

Whether the harvest can be picked with the RMB rather than having to destroy the crop

Default
0
Booleanoptional
Speedspeed

The growth speed (1=Slow, 2=Average, 3=Fast)

Numberrequired
Min rainmin_rain

The minimum rain level to grow

Numberrequired
Max rainmax_rain

The maximum rain level to grow

Numberrequired
Min temperaturemin_temp

The minimum temperature to grow

Numberrequired
Max temperaturemax_temp

The maximum temperature to grow

Numberrequired
Max growth phasemax_growth_phase

The highest growth phase number the crop reaches

Numberrequired

Example

Crop Name Harvest Refined to Pickable Speed Min Rain Max Rain Min Temp (°C) Max Temp (°C) Growth Phases Dead Phases
Barley Seeds.png Barley Barley.png Barley Barley Grain No Slow 70 310 1 26 Barley 0.pngBarley 1.pngBarley 2.pngBarley 3.pngBarley 4.pngBarley 5.pngBarley 6.pngBarley 7.png Barley Dead Young.pngBarley Dead.png
Maize Seeds.png Maize Maize Ear.png Maize Ear --- No Fast 140 400 19 40 Maize 0.pngMaize 1.pngMaize 2.pngMaize 3.pngMaize 4.pngMaize 5.png Maize Dead Young.pngMaize Dead.png
Red Bell Pepper Seeds.png Red Bell Pepper Green Pepper.png Green Pepper --- Yes Slow 100 400 12 32 Red Bell Pepper 0.pngRed Bell Pepper 1.pngRed Bell Pepper 2.pngRed Bell Pepper 3.pngRed Bell Pepper 4.pngRed Bell Pepper 5.pngRed Bell Pepper 6.png Red Bell Pepper Dead Young.pngRed Bell Pepper Dead.png
Jute Seeds.png Jute Jute.png Jute×2 Jute Fibers No Average 100 410 11 37 Jute 0.pngJute 1.pngJute 2.pngJute 3.pngJute 4.pngJute 5.png Jute Dead Young.pngJute Dead.png