Template:Infobox Plant: Difference between revisions
Template page
More actions
Organize fields under a "growth requirements" header, make some of the field names more compact, combine required/ideal temperature/pressure fields |
Do not insert rows into the plant table if we are on a non-main-namespace page (e.g. the documentation for this template) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 56: | Line 56: | ||
| data7={{#if: {{{secondsUntilLightDamage|}}} | {{Duration|seconds={{{secondsUntilLightDamage}}}}} }} | | data7={{#if: {{{secondsUntilLightDamage|}}} | {{Duration|seconds={{{secondsUntilLightDamage}}}}} }} | ||
}} | }} | ||
}}<!-- | }}{{#if:{{NAMESPACE}}|<!-- do not insert data -->|{{#cargo_store:_table=Plant | ||
<noinclude>{{Documentation}}</noinclude> | | plantName={{{plantName|{{PAGENAME}}}}} | ||
| secondsToMaturity={{{secondsToMaturity|}}} | |||
| secondsToSeeding={{{secondsToSeeding|}}} | |||
| fruit={{{fruit|{{PAGENAME}}}}} | |||
| fruitQuantity={{{fruitQuantity|}}} | |||
| seed={{{seed|}}} | |||
| temperatureLow={{{temperatureLow}}} | |||
| temperatureHigh={{{temperatureHigh}}} | |||
| idealTemperatureLow={{{idealTemperatureLow}}} | |||
| idealTemperatureHigh={{{idealTemperatureHigh}}} | |||
| pressureLow={{{pressureLow}}} | |||
| pressureHigh={{{pressureHigh}}} | |||
| idealPressureLow={{{idealPressureLow}}} | |||
| idealPressureHigh={{{idealPressureHigh}}} | |||
| lightSecondsPerDay={{{lightSecondsPerDay|}}} | |||
| darknessSecondsPerDay={{{darknessSecondsPerDay|}}} | |||
| waterMolesPerTick={{{waterMolesPerTick|}}} | |||
| secondsUntilDehydrationDamage={{{secondsUntilDehydrationDamage|}}} | |||
| secondsUntilUndesiredGasDamage={{{secondsUntilUndesiredGasDamage|}}} | |||
| secondsUntilTemperatureDamage={{{secondsUntilTemperatureDamage|}}} | |||
| secondsUntilPressureDamage={{{secondsUntilPressureDamage|}}} | |||
| secondsUntilSuffocationDamage={{{secondsUntilSuffocationDamage|}}} | |||
| secondsUntilLightDamage={{{secondsUntilLightDamage|}}} | |||
}}}}</includeonly><noinclude>{{Documentation}}{{#cargo_declare:_table=Plant | |||
| plantName=String | |||
| secondsToMaturity=Integer | |||
| secondsToSeeding=Integer | |||
| fruit=String | |||
| fruitQuantity=Integer | |||
| seed=String | |||
| temperatureLow=Float | |||
| temperatureHigh=Float | |||
| idealTemperatureLow=Float | |||
| idealTemperatureHigh=Float | |||
| pressureLow=Float | |||
| pressureHigh=Float | |||
| idealPressureLow=Float | |||
| idealPressureHigh=Float | |||
| lightSecondsPerDay=Integer | |||
| darknessSecondsPerDay=Integer | |||
| waterMolesPerTick=Float | |||
| secondsUntilDehydrationDamage=Integer | |||
| secondsUntilUndesiredGasDamage=Integer | |||
| secondsUntilTemperatureDamage=Integer | |||
| secondsUntilPressureDamage=Integer | |||
| secondsUntilSuffocationDamage=Integer | |||
| secondsUntilLightDamage=Integer | |||
}}</noinclude> | |||
Latest revision as of 18:21, 4 April 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. |
This template defines the table "Plant". View table.