Template:Celestial Body: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
(Draft)
 
mNo edit summary
Line 1: Line 1:
  +
<templatestyles src="Nation/styles.css" />
<includeonly><nowiki />
 
  +
{{Infobox/begin|nofloat={{{nofloat}}}}}
 
 
<includeonly>{{Infobox/begin}}
 
{{Infobox/Header|name={{{name}}}}}
 
{{Infobox/Header|name={{{name}}}}}
 
{{Infobox/Illustration|file={{{illustration}}}|caption={{{caption}}}}}
 
{{Infobox/Illustration|file={{{illustration}}}|caption={{{caption}}}}}
{{Infobox/SectionHeader|section={{{orbital_characteristics}}}}}
+
{{Infobox/SectionHeader|section=Orbital Characteristics}}
 
{{Infobox/Item|key=Semi-major axis|value={{{semi_major_axis}}}}}
 
{{Infobox/Item|key=Semi-major axis|value={{{semi_major_axis}}}}}
{{Infobox/end}}
+
{{Infobox/end}}</includeonly>
  +
<nowiki /></includeonly>
 
 
<noinclude>
 
<noinclude>
  +
{{Celestial Body
{{Infobox|nofloat=true}}
 
  +
| name=[name]
  +
| photo=KP_dark.png|photo_desc=[photo_desc]
  +
| semi-major_axis=[semi-major axis]
  +
}}
  +
   
 
{{clr}}
 
{{clr}}
Line 32: Line 38:
 
"type": "string"
 
"type": "string"
 
},
 
},
"semi_major_axis": {
+
"semi-major_axis": {
 
"description": "The semi-major axis of the celestial body in metres."
 
"description": "The semi-major axis of the celestial body in metres."
 
},
 
},
Line 49: Line 55:
 
"caption",
 
"caption",
 
"orbital_characteristics",
 
"orbital_characteristics",
"semi_major_axis",
+
"semi-major_axis",
 
"nofloat"
 
"nofloat"
 
]
 
]

Revision as of 10:38, 24 October 2022



{{{illustration}}}
{{{caption}}}
Orbital Characteristics
Semi-major axis {{{semi_major_axis}}}



Specifications

Generic floating infobox.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the celestial body.

Default
Infobox
Stringrequired
Illustrationillustration

A photograph of the celestial body.

Fileoptional
Captioncaption

A short descriptive text for the illustration.

Stringoptional
orbital_characteristicsorbital_characteristics

A section for the orbital parameters and data of the celestial body.

Unknownoptional
semi-major_axissemi-major_axis

The semi-major axis of the celestial body in metres.

Unknownoptional
nofloatnofloat

Setting any value to this parameter will make the infobox stop floating to the right.

Unknownoptional