More actions
Implementing some template data Tag: 2017 source edit |
m KiwiShark moved page Template:Infobox celestial bodies to Template:Infobox celestial body without leaving a redirect: Misspelled title |
||
(One intermediate revision by the same user not shown) | |||
Line 100: | Line 100: | ||
| header40 = Orbital Characteristics | | header40 = Orbital Characteristics | ||
| label41 = Semi major axis | | label41 = Semi major axis | ||
Line 114: | Line 115: | ||
| header60 = Atmospheric Characteristics | | header60 = Atmospheric Characteristics | ||
| | | label61 = Atmosphere present | ||
| | | data61 = # | ||
| | | label62 = Pressure | ||
| | | data62 = # | ||
| | | label63 = Height | ||
| | | data63 = # | ||
| | | label64 = Oxygen-rich | ||
| | | data64 = # | ||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 15:48, 28 December 2024
<templatedata> { "params": { "type": { "label": "CB Type", "description": "What kind of celestial body is this?", "example": "Planet", "type": "string", "suggestedvalues": [ "Planet", "Moon", "Star" ], "required": true }, "subtype": { "label": "CB Subtype", "description": "What sub-type is this CB? ", "example": "Terrestrial", "type": "string", "suggestedvalues": [ "Terrestrial", "Gas giant", "Oceanic", "Frozen", "K-type" ], "required": true }, "parent": { "label": "Parent Body", "description": "What body does this one orbit?", "example": "Kerbol", "type": "string", "suggestedvalues": [ "Kerbol", "Eve", "Kerbin", "Duna", "Jool" ], "suggested": true }, "system": { "label": "Star System", "description": "What star system does this CB belong to?", "example": "Kerbolar", "type": "string", "suggestedvalues": [ "Kerbolar", "Deb Deb" ], "required": true }, "radius": { "label": "Radius", "description": "The equatorial radius of the body.", "type": "string", "required": true } } } </templatedata>
{{#invoke:Infobox|infobox}}{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox celestial body|Infobox||{{#ifeq:Template:Str left|Infobox|[[Category:Infobox templates|Template:Remove first word]]}}}} | other | #default = }}