Template:Infobox Plant: Difference between revisions
Template page
More actions
Create plant infobox template |
Organize fields under a "growth requirements" header, make some of the field names more compact, combine required/ideal temperature/pressure fields |
||
| Line 16: | Line 16: | ||
{{#if:{{{secondsToMaturity|}}} | * ({{Duration|seconds={{#expr: {{{secondsToMaturity}}}+{{{secondsToSeeding}}} }}}} total) }} }}}} | {{#if:{{{secondsToMaturity|}}} | * ({{Duration|seconds={{#expr: {{{secondsToMaturity}}}+{{{secondsToSeeding}}} }}}} total) }} }}}} | ||
| | | header10=Growth Requirements | ||
| | | label11=Temperature | ||
| data11={{Plainlist| | |||
* {{{temperatureLow}}}-{{{temperatureHigh}}} C | |||
| label12= | * Ideal: {{{idealTemperatureLow}}}-{{{idealTemperatureHigh}}} C | ||
| data12={{{pressureLow}}}-{{{pressureHigh}}} kPa | }} | ||
| label12=Pressure | |||
| data12={{Plainlist| | |||
| label14= | * {{{pressureLow}}}-{{{pressureHigh}}} kPa | ||
* Ideal: {{{idealPressureLow}}}-{{{idealPressureHigh}}} kPa | |||
}} | |||
| label14=Light per day | |||
| data14={{#if: {{{lightSecondsPerDay|}}} | {{Duration|seconds={{{lightSecondsPerDay}}}}} }} | | data14={{#if: {{{lightSecondsPerDay|}}} | {{Duration|seconds={{{lightSecondsPerDay}}}}} }} | ||
| label15= | | label15=Darkness per day | ||
| data15={{#if: {{{darknessSecondsPerDay|}}} | {{Duration|seconds={{{darknessSecondsPerDay}}}}} }} | | data15={{#if: {{{darknessSecondsPerDay|}}} | {{Duration|seconds={{{darknessSecondsPerDay}}}}} }} | ||
Latest revision as of 22:42, 19 March 2026
Usage
Blank template
{{Infobox Plant
| name=
| title=
| child=
| secondsToMaturity=
| secondsToSeeding=
| fruit=
| fruitQuantity=
| seed=
| temperatureLow=
| temperatureHigh=
| idealTemperatureLow=
| idealTemperatureHigh=
| pressureLow=
| pressureHigh=
| idealPressureLow=
| idealPressureHigh=
| lightSecondsPerDay=
| darknessSecondsPerDay=
| waterMolesPerTick=
| inhaled=
| exhaled=
| harmfulGases=
| secondsUntilDehydrationDamage=
| secondsUntilUndesiredGasDamage=
| secondsUntilTemperatureDamage=
| secondsUntilPressureDamage=
| secondsUntilSuffocationDamage=
| secondsUntilLightDamage=
}}
Examples
| Yield | 2 Potato | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Seed | Potato Seeds | ||||||||||||||
| Matures after | 50 min | ||||||||||||||
| Seeds after |
| ||||||||||||||
| Growth Requirements | |||||||||||||||
| Temperature |
| ||||||||||||||
| Pressure |
| ||||||||||||||
| Light per day | 5 min | ||||||||||||||
| Darkness per day | 3 min 20 s | ||||||||||||||
| Water usage | 0.0072 mol/min | ||||||||||||||
| Inhales |
| ||||||||||||||
| Exhales |
| ||||||||||||||
| Toxic gases | |||||||||||||||
| |||||||||||||||
{{Infobox Plant
| name=Potato
| title=Potato
| secondsToMaturity=3000
| secondsToSeeding=1000
| fruit=Potato
| fruitQuantity=2
| seed=Potato Seeds
| temperatureLow=0
| temperatureHigh=50
| idealTemperatureLow=20
| idealTemperatureHigh=30
| pressureLow=25
| pressureHigh=200
| idealPressureLow=50
| idealPressureHigh=100
| lightSecondsPerDay=300
| darknessSecondsPerDay=200
| waterMolesPerTick=0.00006
| inhaled={{PlantInhaledGas|Carbon Dioxide|molesPerTick=0.0012}}
| exhaled={{PlantExhaledGas|Oxygen|molesPerTick=0.0012}}
| harmfulGases={{PlantHarmfulGas|Pollutant|1}}{{PlantHarmfulGas|Volatiles|1}}
| secondsUntilDehydrationDamage=1800
| secondsUntilUndesiredGasDamage=300
| secondsUntilTemperatureDamage=300
| secondsUntilPressureDamage=600
| secondsUntilSuffocationDamage=3600
| secondsUntilLightDamage=3600
}}
| Properties | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Stacks | Yes (20) | ||||||||||||||
| Plant | |||||||||||||||
| Yield | 2 Potato | ||||||||||||||
| Seed | Potato Seeds | ||||||||||||||
| Matures after | 50 min | ||||||||||||||
| Seeds after |
| ||||||||||||||
| Growth Requirements | |||||||||||||||
| Temperature |
| ||||||||||||||
| Pressure |
| ||||||||||||||
| Light per day | 5 min | ||||||||||||||
| Darkness per day | 3 min 20 s | ||||||||||||||
| Water usage | 0.0072 mol/min | ||||||||||||||
| Inhales |
| ||||||||||||||
| Exhales |
| ||||||||||||||
| Toxic gases | |||||||||||||||
| |||||||||||||||
{{Itembox
| name=Potato
| stacks=20
| module={{Infobox Plant|child=yes
| secondsToMaturity=3000
| secondsToSeeding=1000
| fruit=Potato
| fruitQuantity=2
| seed=Potato Seeds
| temperatureLow=0
| temperatureHigh=50
| idealTemperatureLow=20
| idealTemperatureHigh=30
| pressureLow=25
| pressureHigh=200
| idealPressureLow=50
| idealPressureHigh=100
| lightSecondsPerDay=300
| darknessSecondsPerDay=200
| waterMolesPerTick=0.00006
| inhaled={{PlantInhaledGas|Carbon Dioxide|molesPerTick=0.0012}}
| exhaled={{PlantExhaledGas|Oxygen|molesPerTick=0.0012}}
| harmfulGases={{PlantHarmfulGas|Pollutant|1}}{{PlantHarmfulGas|Volatiles|1}}
| secondsUntilDehydrationDamage=1800
| secondsUntilUndesiredGasDamage=300
| secondsUntilTemperatureDamage=300
| secondsUntilPressureDamage=600
| secondsUntilSuffocationDamage=3600
| secondsUntilLightDamage=3600
}}
}}
| The above documentation is transcluded from Template:Infobox Plant/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |