User:Tyraeis/Infobox plant: Difference between revisions
From Stationeers Community Wiki
More actions
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| | | name={{{name|}}} | ||
| title={{#if:{{{child | | child={{{child|}}} | ||
| label1= | | title={{{title|{{#if:{{{child|}}}|Plant}}}}} | ||
| data1={{#if:{{{ | |||
| label2= | | label1=Matures after | ||
| data2={{#if:{{{ | | data1={{#if: {{{secondsToMaturity|}}} | {{Duration|seconds={{{secondsToMaturity}}}}} }} | ||
| label3= | | label2=Seeds after | ||
| data3={{ | | data2={{#if: {{{secondsToSeeding|}}} | {{Plainlist| | ||
* {{Duration|seconds={{{secondsToSeeding}}}}} | |||
{{#if:{{{secondsToMaturity|}}} | * ({{Duration|seconds={{#expr: {{{secondsToMaturity}}}+{{{secondsToSeeding}}} }}}} total)}} }}}} | |||
| label3=Yield | |||
| data3={{#if: {{{fruitQuantity|}}}{{{fruit|}}} | {{{fruitQuantity|}}} {{#ifeq: {{{fruit|}}} | {{PAGENAME}} | {{{fruit|}}} | [[{{{fruit|}}}]] }} }} | |||
| | | label10=Required temperature | ||
| | | data10={{{temperatureLow}}}-{{{temperatureHigh}}} C | ||
| label11=Ideal temperature | |||
| data11={{{idealTemperatureLow}}}-{{{idealTemperatureHigh}}} C | |||
| label12=Required pressure | |||
| data12={{{pressureLow}}}-{{{pressureHigh}}} kPa | |||
| label13=Ideal pressure | |||
| | | data13={{{idealPressureLow}}}-{{{idealPressureHigh}}} kPa | ||
| | | label14=Required light | ||
| | | data14={{#if: {{{lightSecondsPerDay|}}} | {{Duration|seconds={{{lightSecondsPerDay}}}}} per day }} | ||
| | | label15=Required darkness | ||
| | | data15={{#if: {{{darknessSecondsPerDay|}}} | {{Duration|seconds={{{darknessSecondsPerDay}}}}} per day }} | ||
| | |||
| | | label21=Water usage | ||
| | | data21={{#if: {{{waterMolesPerTick|}}} | {{#expr: {{{waterMolesPerTick}}}*120 }} mol/min }} | ||
| | | label22=Inhales | ||
| | | data22={{#if: {{{inhaled|}}} | {{Plainlist|<ul>{{{inhaled}}}</ul>}} }} | ||
| | | label23=Exhales | ||
| | | data23={{#if: {{{exhaled|}}} | {{Plainlist|<ul>{{{exhaled}}}</ul>}} }} | ||
| | | label24=Toxic gases | ||
| | | data24={{#if: {{{harmfulGases|}}} | {{Plainlist|<ul>{{{harmfulGases}}}</ul>}} }} | ||
| | |||
| | | data30={{Infobox | subbox=yes | ||
| | | header1=Time until damaged by: | ||
| | | label2=Drought | ||
| | | data2={{#if: {{{secondsUntilDehydrationDamage|}}} | {{Duration|seconds={{{secondsUntilDehydrationDamage}}}}} }} | ||
| | | label3=Toxic gas | ||
| | | data3={{#if: {{{secondsUntilUndesiredGasDamage|}}} | {{Duration|seconds={{{secondsUntilUndesiredGasDamage}}}}} }} | ||
| | | label4=High or low temperature | ||
| | | data4={{#if: {{{secondsUntilTemperatureDamage|}}} | {{Duration|seconds={{{secondsUntilTemperatureDamage}}}}} }} | ||
| | | label5=High or low pressure | ||
| | | data5={{#if: {{{secondsUntilPressureDamage|}}} | {{Duration|seconds={{{secondsUntilPressureDamage}}}}} }} | ||
| label6=Suffocation | |||
| data6={{#if: {{{secondsUntilSuffocationDamage|}}} | {{Duration|seconds={{{secondsUntilSuffocationDamage}}}}} }} | |||
| label7=Insufficient light or darkness | |||
| data7={{#if: {{{secondsUntilLightDamage|}}} | {{Duration|seconds={{{secondsUntilLightDamage}}}}} }} | |||
}} | |||
}}</includeonly> | }}</includeonly> | ||
<noinclude>{{ | <noinclude>{{User:Tyraeis/Infobox test | ||
| title=Potato | |||
| foo=Value 1 | |||
| bar=Value 2 | |||
| module={{User:Tyraeis/Infobox plant|child=yes | |||
| secondsToMaturity=3000 | |||
| secondsToSeeding=1000 | |||
| fruit=Potato | |||
| fruitQuantity=2 | |||
| temperatureLow=0 | |||
| temperatureHigh=50 | |||
| idealTemperatureLow=20 | |||
| idealTemperatureHigh=30 | |||
| pressureLow=25 | |||
| pressureHigh=200 | |||
| idealPressureLow=50 | |||
| idealPressureHigh=100 | |||
| lightSecondsPerDay=300 | |||
| darknessSecondsPerDay=200 | |||
| waterMolesPerTick=0.00006 | |||
| inhaled=<li>{{PlantInhaledGas|Carbon Dioxide|molesPerTick=0.0012}}</li> | |||
| exhaled=<li>{{PlantExhaledGas|Oxygen|molesPerTick=0.0012}}</li> | |||
| harmfulGases=<li>{{PlantHarmfulGas|Pollutant}}</li><li>{{PlantHarmfulGas|Volatiles}}</li> | |||
| secondsUntilDehydrationDamage=1800 | |||
| secondsUntilUndesiredGasDamage=300 | |||
| secondsUntilTemperatureDamage=300 | |||
| secondsUntilPressureDamage=600 | |||
| secondsUntilSuffocationDamage=3600 | |||
| secondsUntilLightDamage=3600 | |||
}} | |||
}} | |||
{{User:Tyraeis/Infobox test | |||
| title=Potato | |||
| foo=Value 1 | |||
| bar=Value 2 | |||
| module={{User:Tyraeis/Infobox plant|child=yes | |||
| secondsToSeeding=120 | |||
| temperatureLow=0 | |||
| temperatureHigh=50 | |||
| idealTemperatureLow=20 | |||
| idealTemperatureHigh=30 | |||
| pressureLow=25 | |||
| pressureHigh=200 | |||
| idealPressureLow=50 | |||
| idealPressureHigh=100 | |||
}} | |||
}}</noinclude> | |||
Latest revision as of 03:55, 19 March 2026
| Foo | Value 1 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bar | Value 2 | ||||||||||||||
| Plant | |||||||||||||||
| Matures after | 50 min | ||||||||||||||
| Seeds after |
| ||||||||||||||
| Yield | 2 Potato | ||||||||||||||
| Required temperature | 0-50 C | ||||||||||||||
| Ideal temperature | 20-30 C | ||||||||||||||
| Required pressure | 25-200 kPa | ||||||||||||||
| Ideal pressure | 50-100 kPa | ||||||||||||||
| Required light | 5 min per day | ||||||||||||||
| Required darkness | 3 min 20 s per day | ||||||||||||||
| Water usage | 0.0072 mol/min | ||||||||||||||
| Inhales |
| ||||||||||||||
| Exhales |
| ||||||||||||||
| Toxic gases | |||||||||||||||
| |||||||||||||||
| Foo | Value 1 | ||
|---|---|---|---|
| Bar | Value 2 | ||
| Plant | |||
| Seeds after |
| ||
| Required temperature | 0-50 C | ||
| Ideal temperature | 20-30 C | ||
| Required pressure | 25-200 kPa | ||
| Ideal pressure | 50-100 kPa | ||
| |||