Actions

Template

Difference between revisions of "World"

From Unofficial Stationeers Wiki

(Undo revision 21953 by Starviking (talk))
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
+
<includeonly>{{Infobox
 
  |    name = World
 
  |    name = World
 
  |    title = {{{name}}}
 
  |    title = {{{name}}}
Line 9: Line 9:
 
  |  data4  = {{#expr:{{{solarenergy}}}*100round0}} % Earth
 
  |  data4  = {{#expr:{{{solarenergy}}}*100round0}} % Earth
 
  |  label6  = [[Solar Inclination]]
 
  |  label6  = [[Solar Inclination]]
  |  data6  = {{{solarinclination}}} °
+
  |  data6  = {{{solarinclination}}}°
 
  | header8  = [[Atmosphere]]
 
  | header8  = [[Atmosphere]]
 
  |  label10 = [[Temperature]]
 
  |  label10 = [[Temperature]]
  |  data10 = {{{mintemp}}} K - {{{maxtemp}}} K
+
  |  data10 = {{{mintemp}}} K {{#if:{{{maxtemp|}}}|- {{{maxtemp}}} K}}
 
  |  label12 = [[Pressure]]
 
  |  label12 = [[Pressure]]
 
  |  data12 = {{{pressure}}} kPa
 
  |  data12 = {{{pressure}}} kPa
 
  |  label14 = [[Carbon Dioxide]]{{icon|co2}}
 
  |  label14 = [[Carbon Dioxide]]{{icon|co2}}
 
  |  data14 = {{#if:{{{carbondioxide|}}} | {{{carbondioxide|}}} %}}
 
  |  data14 = {{#if:{{{carbondioxide|}}} | {{{carbondioxide|}}} %}}
  |  label26 = [[Nitrogen]]{{icon|n}}
+
  |  label16 = [[Nitrogen]]{{icon|n}}
  |  data26 = {{#if:{{{nitrogen|}}} | {{{nitrogen|}}} %}}
+
  |  data16 = {{#if:{{{nitrogen|}}} | {{{nitrogen|}}} %}}
 
  |  label18 = [[Nitrous Oxide]]{{icon|n2o}}
 
  |  label18 = [[Nitrous Oxide]]{{icon|n2o}}
 
  |  data18 = {{#if:{{{nitrousoxide|}}} | {{{nitrousoxide|}}} %}}
 
  |  data18 = {{#if:{{{nitrousoxide|}}} | {{{nitrousoxide|}}} %}}
Line 29: Line 29:
 
  |  label26 = [[Water]]{{icon|h2o}}
 
  |  label26 = [[Water]]{{icon|h2o}}
 
  |  data26 = {{#if:{{{water|}}} | {{{water|}}} %}}
 
  |  data26 = {{#if:{{{water|}}} | {{{water|}}} %}}
}}
+
}}[[Category:Worlds]]</includeonly><noinclude>
<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
</noinclude>
 
<includeonly>
 
[[Category:Worlds]]
 
</includeonly>
 
<noinclude>
 
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
"image": {},
+
"image": {
"caption": {},
+
"type": "wiki-file-name"
 +
},
 +
"caption": {
 +
"type": "string"
 +
},
 
"gravity": {
 
"gravity": {
 
"label": "Gravity",
 
"label": "Gravity",
 
"description": "Gravity value in meters per second squared, as defined in the world settings flie",
 
"description": "Gravity value in meters per second squared, as defined in the world settings flie",
 
"example": "-9.81",
 
"example": "-9.81",
"required": true
+
"required": true,
 +
"type": "number"
 
},
 
},
 
"solarenergy": {
 
"solarenergy": {
Line 73: Line 72:
 
"description": "Maximum temperature of the atmosphere in Kelvin, as specified in the world settings file",
 
"description": "Maximum temperature of the atmosphere in Kelvin, as specified in the world settings file",
 
"example": "293.15 for Mars",
 
"example": "293.15 for Mars",
"type": "number",
+
"type": "number"
"required": true
 
 
},
 
},
 
"pressure": {
 
"pressure": {
Line 80: Line 78:
 
"description": "Atmospheric pressure in kPa",
 
"description": "Atmospheric pressure in kPa",
 
"example": "3 for Mars",
 
"example": "3 for Mars",
"required": true
+
"required": true,
 +
"type": "number"
 +
},
 +
"carbondioxide": {
 +
"description": "Percentage of Carbon Dioxide in the atmosphere",
 +
"type": "number"
 +
},
 +
"nitrogen": {
 +
"description": "Percentage of Nitrogen in the atmosphere",
 +
"type": "number"
 +
},
 +
"nitrousoxide": {
 +
"description": "Percentage of Nitrous Oxide in the atmosphere",
 +
"type": "number"
 +
},
 +
"oxygen": {
 +
"description": "Percentage of Oxygen in the atmosphere",
 +
"type": "number"
 +
},
 +
"pollutants": {
 +
"description": "Percentage of Pollutants in the amosphere",
 +
"type": "number"
 +
},
 +
"volatiles": {
 +
"description": "Percentage of Volatiles in the atmosphere",
 +
"type": "number"
 +
},
 +
"water": {
 +
"description": "Percentage of Water in the atmosphere"
 
},
 
},
"carbondioxide": {},
 
"nitrogen": {},
 
"nitrousoxide": {},
 
"oxygen": {},
 
"pollutants": {},
 
"volatiles": {},
 
"water": {},
 
 
"name": {
 
"name": {
 
"label": "World name",
 
"label": "World name",
 
"description": "World name as specified in the world settings file",
 
"description": "World name as specified in the world settings file",
 
"example": "Moon",
 
"example": "Moon",
"required": true
+
"required": true,
 +
"type": "string"
 
}
 
}
 
},
 
},

Latest revision as of 19:41, 6 August 2024

Template documentation[view] [edit] [history] [purge]
WorldName
WorldImage
ImageCaption
Gravity -9.81 m/s2 ≡ 100 % Earth
Solar Energy 100 % Earth
Solar Inclination
Atmosphere
Temperature 273.15 K - 293.15 K
Pressure 101 kPa
Carbon Dioxide

Icon-carbondioxide.png

0 %
Nitrogen

Icon-nitrogen.png

70 %
Nitrous Oxide

Icon-nitrousoxide.png

0 %
Oxygen

Icon-oxygen.png

30 %
Pollutants

Icon-pollutant.png

0 %
Volatiles

Icon-volatiles.png

0 %
Water

Icon-water.png

0 %

Summary[edit]

Use this template to describe the world's features.

Example[edit]

The following code produces the table on the right.

{{World
 |             name = WorldName
 |            image = WorldImage
 |          caption = ImageCaption
 |          gravity = -9.81
 |      solarenergy = 1.0
 | solarinclination = 0
 |          mintemp = 273.15
 |          maxtemp = 293.15
 |         pressure = 101
 |    carbondioxide = 0
 |         nitrogen = 70
 |     nitrousoxide = 0
 |           oxygen = 30
 |       pollutants = 0
 |        volatiles = 0
 |            water = 0
}}

Empty Template[edit]

{{World
 |             name = 
 |            image = 
 |          caption = 
 |          gravity = 
 |      solarenergy = 
 | solarinclination = 
 |          mintemp = 
 |          maxtemp = 
 |         pressure = 
 |    carbondioxide = 
 |         nitrogen = 
 |     nitrousoxide = 
 |           oxygen = 
 |       pollutants = 
 |        volatiles = 
 |            water = 
}}

Template for World data

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
World namename

World name as specified in the world settings file

Default
empty
Example
Moon
Auto value
empty
Stringrequired
Imageimage

no description

Default
empty
Example
empty
Auto value
empty
Fileoptional
Captioncaption

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
Gravitygravity

Gravity value in meters per second squared, as defined in the world settings flie

Default
empty
Example
-9.81
Auto value
empty
Numberrequired
Solar energysolarenergy

Solar energy in percentage of Earth's solar energy, as specified in the world settings file

Default
empty
Example
0.91 for Mars
Auto value
empty
Numberrequired
Solar inclinationsolarinclination

Solar inclination as an ecliptic angle in degrees (angle between the celestial and ecliptical north poles), as defined in the world settings file

Default
empty
Example
8 for mars
Auto value
empty
Numberrequired
Minimum temperaturemintemp

Minimum temperature of the atmosphere in Kelvin, as specified in the world settings file

Default
empty
Example
278.15 for Mars
Auto value
empty
Numberrequired
Maximum temperaturemaxtemp

Maximum temperature of the atmosphere in Kelvin, as specified in the world settings file

Default
empty
Example
293.15 for Mars
Auto value
empty
Numberoptional
Pressurepressure

Atmospheric pressure in kPa

Default
empty
Example
3 for Mars
Auto value
empty
Numberrequired
Carbondioxidecarbondioxide

Percentage of Carbon Dioxide in the atmosphere

Default
empty
Example
empty
Auto value
empty
Numberoptional
Nitrogennitrogen

Percentage of Nitrogen in the atmosphere

Default
empty
Example
empty
Auto value
empty
Numberoptional
Nitrousoxidenitrousoxide

Percentage of Nitrous Oxide in the atmosphere

Default
empty
Example
empty
Auto value
empty
Numberoptional
Oxygenoxygen

Percentage of Oxygen in the atmosphere

Default
empty
Example
empty
Auto value
empty
Numberoptional
Pollutantspollutants

Percentage of Pollutants in the amosphere

Default
empty
Example
empty
Auto value
empty
Numberoptional
Volatilesvolatiles

Percentage of Volatiles in the atmosphere

Default
empty
Example
empty
Auto value
empty
Numberoptional
Waterwater

Percentage of Water in the atmosphere

Default
empty
Example
empty
Auto value
empty
Unknownoptional