More actions
<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 = }}