Template:Celestial Body: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
(Draft)
 
mNo edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
<templatestyles src="Nation/styles.css" />
<includeonly><nowiki />
 
  +
{{Infobox/begin|nofloat={{{nofloat}}}}}
 
{{Infobox/Header|name={{{name}}}}}
+
<includeonly>{{Infobox/begin}}
{{Infobox/Illustration|file={{{illustration}}}|caption={{{caption}}}}}
+
{{Infobox/Header|title={{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{subheading|}}}|{{{subheading|}}}|}}}}
{{Infobox/SectionHeader|section={{{orbital_characteristics}}}}}
+
{{Infobox/Illustration|file=[[File:{{{photo}}}]]|caption={{{caption|}}}}}
  +
{{Infobox/SectionHeader|section=Orbital Parameters}}
{{Infobox/Item|key=Semi-major axis|value={{{semi_major_axis}}}}}
 
{{Infobox/end}}
+
{{Infobox/Item|key=Apoapsis|value={{{apoapsis|}}}}}
  +
{{Infobox/Item|key=Periapsis|value={{{periapsis|}}}}}
<nowiki /></includeonly>
 
 
{{Infobox/Item|key=Semi-major axis|value={{{semi-major_axis|}}}}}
  +
{{Infobox/Item|key=Orbital eccentricity|value={{{orbital_eccentricity|}}}}}
  +
{{Infobox/Item|key=Orbital period (sidereal)|value={{{orbital_period_sidereal|}}}}}
  +
{{Infobox/Item|key=Average orbital speed|value={{{average_orbital_speed|}}}}}
  +
{{Infobox/Item|key=Mean anomaly|value={{{mean_anomaly|}}}}}
  +
{{Infobox/Item|key=Inclination|value={{{inclination|}}}}}
  +
{{Infobox/Item|key=Satellites|value={{{satellites|}}}}}
  +
{{Infobox/SectionHeader|section=Physical Characteristics|}}
  +
{{Infobox/Item|key=Equatorial radius|value={{{equatorial_radius|}}}}}
  +
{{Infobox/Item|key=Circumference|value={{{circumference|}}}}}
  +
{{Infobox/Item|key=Surface area|value={{{surface_area|}}}}}
 
{{Infobox/Item|key=Mass|value={{{mass|}}}}}
  +
{{Infobox/Item|key=Mean density|value={{{mean_density|}}}}}
  +
{{Infobox/Item|key=Surface gravity|value={{{surface_gravity|}}}}}
  +
{{Infobox/Item|key=Escape velocity|value={{{escape_velocity|}}}}}
  +
{{Infobox/Item|key=Sidereal rotation period|value={{{sidereal_rotation_period|}}}}}
  +
{{Infobox/Item|key=Solar day|value={{{solar_day|}}}}}
  +
{{Infobox/Item|key=Axial tilt|value={{{axial_tilt|}}}}}
  +
{{Infobox/Item|key=Surface equivalent dose rate|value={{{surface_equivalent_dose_rate|}}}}}
  +
{{Infobox/Item|key=Surface atmospheric pressure|value={{{surface_atmospheric_pressure|}}}}}
  +
{{Infobox/Item|key=Sphere of influence|value={{{sphere_of_influence|}}}}}
  +
  +
{{Infobox/SectionHeader|section=History}}
  +
{{Infobox/Item|key=Discovered|value={{{discovered|}}}}}
  +
{{Infobox/Item|key=Landed upon|value={{{landed_upon|}}}}}
  +
 
{{Infobox/end}}</includeonly>
  +
 
<noinclude>
 
<noinclude>
  +
{{Celestial Body
{{Infobox|nofloat=true}}
 
  +
| name=[name]
  +
| photo=KP_dark.png|photo_desc=[photo_desc]
  +
}}
  +
   
 
{{clr}}
 
{{clr}}
Line 22: Line 54:
 
"default": "Infobox"
 
"default": "Infobox"
 
},
 
},
"illustration": {
+
"photo": {
"label": "Illustration",
+
"label": "Photograph",
 
"description": "A photograph of the celestial body.",
 
"description": "A photograph of the celestial body.",
 
"type": "wiki-file-name"
 
"type": "wiki-file-name"
Line 32: Line 64:
 
"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 38: Line 70:
 
"description": "Setting any value to this parameter will make the infobox stop floating to the right."
 
"description": "Setting any value to this parameter will make the infobox stop floating to the right."
 
},
 
},
"orbital_characteristics": {
+
"orbital_parameters": {
 
"description": "A section for the orbital parameters and data of the celestial body."
 
"description": "A section for the orbital parameters and data of the celestial body."
 
}
 
}
Line 46: Line 78:
 
"paramOrder": [
 
"paramOrder": [
 
"name",
 
"name",
"illustration",
+
"photo",
 
"caption",
 
"caption",
  +
"orbital_parameters",
"orbital_characteristics",
 
"semi_major_axis",
+
"semi-major_axis",
 
"nofloat"
 
"nofloat"
 
]
 
]
Line 56: Line 88:
   
 
[[Category:Templates]]
 
[[Category:Templates]]
  +
[[Category:Infoboxes]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:24, 26 October 2022



[name]

KP dark.png
Orbital Parameters
Physical Characteristics
History



Specifications

Generic floating infobox.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the celestial body.

Default
Infobox
Stringrequired
Photographphoto

A photograph of the celestial body.

Fileoptional
Captioncaption

A short descriptive text for the illustration.

Stringoptional
orbital_parametersorbital_parameters

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