Difference between revisions of "Template:Planet"

 
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
−
{| class="wikitable" style="width:40%" align="right" border="1"
+
{| class="infobox bordered" style="float: width:23em; right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 85%; margin-left:5px" border=1 align="right" cellpadding="2" cellspacing="0" width="300"
−
|+ '''Planet Information'''
+
!colspan="2" align="center" style="color: Bisque; font-size: 120%; height: 20px; background: Black no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''
−
|-
 
−
| Name || {{{name}}}
 
−
|-
 
−
| Symbol || {{{symbol}}}
 
−
|-
 
−
| Diameter || {{{diameter}}}
 
−
|-
 
−
| Mass || {{{mass}}}
 
−
|-
 
−
| Distance from Sun (Orbital Semi-major Axis || {{{distance}}}
 
−
|-
 
−
| Length of Day || {{{day}}}
 
−
|-
 
−
| Length of Year (Revolution) || {{{year}}}
 
−
|-
 
−
| Number of Moons || {{{moons}}}
 
−
|-
 
−
| Composition || {{{composition}}}
 
−
|-
 
−
| Color || {{{color}}}
 
−
|-
 
−
| Date of Discovery || {{{date}}}
 
−
|-
 
−
| Name of Discoverer || {{{discname}}}
 
−
|-
 
−
| Name Origin || {{{origname}}}
 
 
|-
 
|-
 +
<!----------Image---------->
 +
{{!}}align="center" colspan="2" style="color: white; background: Black "{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|250px]]<br>{{{caption|}}} | }}
 +
{{!-}}
 +
<!----Symbol-------------->
 +
{{#if:{{{symbol|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Symbol'''
 +
{{!}} [[image:{{{symbol|}}}|40px]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Date of discovery--->
 +
{{#if:{{{date|}}} | <!--then:-->
 +
{{!}} '''Date of discovery'''
 +
{{!}} {{{date|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Name of discoverer-->
 +
{{#if:{{{discname|}}} | <!--then:-->
 +
{{!}} '''Name of discoverer'''
 +
{{!}} {{{discname|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Name origin--------->
 +
{{#if:{{{origname|}}} | <!--then:-->
 +
{{!}} '''Name origin'''
 +
{{!}} {{{origname|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Orbital characteristics --->
 +
! colspan="2" style="text-align:center" {{!}} [[Orbit]]al characteristics
 +
{{!-}}
 +
<!----Primary ------------>
 +
{{#if:{{{primary|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''Primary'''
 +
{{!}}[[{{{primary|}}}]] | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Order--------------->
 +
{{#if:{{{order|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Order from primary'''
 +
{{!}} {{{order|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Periapsis ------------>
 +
{{#if:{{{periapsis|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Apsis{{!}}Peri{{{apsis|{{apsides|{{{primary|generic}}}}}}}}]]'''
 +
{{!}}{{{periapsis}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Apoapsis ------------>
 +
{{#if:{{{apoapsis|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} {{#switch: {{{apsis|{{apsides|{{{primary|generic}}}}}}}}
 +
|helion
 +
|hermion
 +
|areion
 +
|uranion
 +
|hadion
 +
|eridion
 +
|astron  = '''[[Apsis{{!}}Ap{{{apsis|{{apsides|{{{primary|generic}}}}}}}}]]'''
 +
|'''[[Apsis{{!}}Apo{{{apsis|{{apsides|{{{primary|generic}}}}}}}}]]'''}}
 +
{{!}}{{{apoapsis}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Semi-major axis ------------>
 +
{{#if:{{{semimajor|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Semi-major axis]]'''
 +
{{!}}{{{semimajor}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Mean orbital radius, if not otherwise specified as above ------------>
 +
{{#if:{{{orbitradius|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''Mean orbital radius'''
 +
{{!}}{{{orbitradius}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Bode's Law distance ------------>
 +
{{#if:{{{bode|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Titius-Bode law|Titius-Bode prediction]]'''
 +
{{!}}{{{bode}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Orbital circumference ------------>
 +
{{#if:{{{circumference|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Circumference]]'''
 +
{{!}}{{{circumference}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Orbital eccentricity ------------>
 +
{{#if:{{{eccentricity|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Orbital eccentricity]]'''
 +
{{!}}{{{eccentricity}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Lengths of year------>
 +
<!----Sidereal------>
 +
{{#if:{{{sidereal|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Orbital period|Sidereal {{#switch:{{{primary|{{PAGENAME}}}}}|Galaxy|Sun=year|Mercury|Venus|Earth|Mars|Jupiter|Saturn|Uranus|Neptune|Pluto|Eris=month|period}}]]'''
 +
{{!}}{{{sidereal}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Synodic------>
 +
{{#if:{{{synodic|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Orbital period|Synodic {{#switch:{{{primary|{{PAGENAME}}}}}|Galaxy|Sun=year|Mercury|Venus|Earth|Mars|Jupiter|Saturn|Uranus|Neptune|Pluto|Eris=month|period}}]]'''
 +
{{!}}{{{synodic}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Orbital speed------>
 +
{{#if:{{{orbitspeed|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''Avg. orbital speed'''
 +
{{!}}{{{orbitspeed}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Inclination------>
 +
{{#if:{{{inclination|}}}| <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Inclination]]'''
 +
{{!}}{{{inclination}}} to {{{reference|{{#if:{{{primary|}}}|{{{primary}}}'s|primary's}} equator|}}}| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Rotational characteristics --->
 +
{{#if:{{{siderealday|{{{solarday|{{{rotatespeed|{{{axialtilt|}}}}}}}}}}}} | <!--then:-->
 +
! colspan="2" style="text-align:center" {{!}} [[Rotation]]al characteristics| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Sidereal day------->
 +
{{#if:{{{siderealday|}}} | <!--then:-->
 +
{{!}} '''[[Sidereal day]]'''
 +
{{!}} {{{siderealday|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Solar day------->
 +
{{#if:{{{solarday|}}} | <!--then:-->
 +
{{!}} '''[[Solar day]]'''
 +
{{!}} {{{solarday|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Rotational speed------->
 +
{{#if:{{{rotatespeed|}}} | <!--then:-->
 +
{{!}} '''[[Rotation speed|Rotational speed]]'''
 +
{{!}} {{{rotatespeed|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Axial tilt------->
 +
{{#if:{{{axialtilt|}}} | <!--then:-->
 +
{{!}} '''[[Axial tilt]]'''
 +
{{!}} {{{axialtilt|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Physical characteristics --->
 +
! colspan="2" style="text-align:center" {{!}} Physical characteristics
 +
{{!-}}
 +
<!----Mass---------------->
 +
{{#if:{{{mass|}}} | <!--then:-->
 +
{{!}} '''[[Mass]]'''
 +
{{!}} {{{mass|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Density---------------->
 +
{{#if:{{{density|}}} | <!--then:-->
 +
{{!}} '''[[Density]]'''
 +
{{!}} {{{density|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Diameter------------>
 +
{{#if:{{{diameter|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Diameter'''
 +
{{!}} {{{diameter|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Mean Radius------------>
 +
{{#if:{{{meanradius|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Mean radius'''
 +
{{!}} {{{meanradius|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Equatorial Radius------------>
 +
{{#if:{{{equatorradius|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Equatorial radius'''
 +
{{!}} {{{equatorradius|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Polar Radius------------>
 +
{{#if:{{{polarradius|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Polar radius'''
 +
{{!}} {{{polarradius|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Surface gravity------------>
 +
{{#if:{{{surfacegrav|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Surface gravity]]'''
 +
{{!}} {{{surfacegrav|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Escape speed------------>
 +
{{#if:{{{escapespeed|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Escape speed]]'''
 +
{{!}} {{{escapespeed|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Surface area------------>
 +
{{#if:{{{surfacearea|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''[[Surface area]]'''
 +
{{!}} {{{surfacearea|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Land area------------>
 +
{{#if:{{{landarea|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Land area'''
 +
{{!}} {{{landarea|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Water area------------>
 +
{{#if:{{{waterarea|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Water area'''
 +
{{!}} {{{waterarea|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Temperature:------------>
 +
<!----Min:------------>
 +
{{#if:{{{mintemp|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Minimum [[temperature]]'''
 +
{{!}} {{{mintemp|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Mean:------------>
 +
{{#if:{{{meantemp|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Mean [[temperature]]'''
 +
{{!}} {{{meantemp|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Max:------------>
 +
{{#if:{{{maxtemp|}}} | <!--then:-->
 +
{{!}}width=50% {{!}} '''Maximum [[temperature]]'''
 +
{{!}} {{{maxtemp|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Number of moons----->
 +
{{#if:{{{moons|}}} | <!--then:-->
 +
{{!}} '''Number of moons'''
 +
{{!}} {{{moons|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Composition--------->
 +
{{#if:{{{composition|}}} | <!--then:-->
 +
{{!}} '''Composition'''
 +
{{!}} {{{composition|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Color--------------->
 +
{{#if:{{{color|}}} | <!--then:-->
 +
{{!}} '''Color'''
 +
{{!}} {{{color|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Albedo-------------->
 +
{{#if:{{{albedo|}}} | <!--then:-->
 +
{{!}} '''[[Albedo]]'''
 +
{{!}} {{{albedo|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Magnetosphere------->
 +
{{#if:{{{pmdm|{{{cmdm|{{{mfd|}}}}}}}}} | <!--then:-->
 +
! colspan="2" style="text-align:center" {{!}} Magnetosphere| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Magnetic flux density-------------->
 +
{{#if:{{{mfd|}}} | <!--then:-->
 +
{{!}} '''Magnetic flux density'''
 +
{{!}} {{{mfd|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Present magnetic dipole moment---------------->
 +
{{#if:{{{pmdm|}}} | <!--then:-->
 +
{{!}} '''Magnetic dipole moment at present'''
 +
{{!}} {{{pmdm|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Creation magnetic dipole moment---------------->
 +
{{#if:{{{cmdm|}}} | <!--then:-->
 +
{{!}} '''Magnetic dipole moment at creation'''
 +
{{!}} {{{cmdm|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Decay time---------------->
 +
{{#if:{{{mdt|}}} | <!--then:-->
 +
{{!}} '''Decay time'''
 +
{{!}} {{{mdt|}}} |  | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Half life---------------->
 +
{{#if:{{{mhl|}}} | <!--then:-->
 +
{{!}} '''Half life'''
 +
{{!}} {{{mhl|}}} | <!--else-->
 +
}}
 +
{{!-}}
 
|}
 
|}
 +
 +
<includeonly>[[Category:{{#switch: {{{name|{{PAGENAME}}}}}
 +
|Sun = Sun
 +
|Mercury
 +
|Venus
 +
|Earth
 +
|Mars
 +
|Jupiter
 +
|Saturn
 +
|Uranus
 +
|Neptune = Planets
 +
|Pluto
 +
|Eris
 +
|Ceres
 +
|Eros = Dwarf planets
 +
|Moons}}]]</includeonly><noinclude>[[Category:Template|{{PAGENAME}}]]
 +
{{TemplateDoc|pages=Astronomy articles|purpose=Infobox|cat=Planets}}
 +
{{Parms|
 +
{{Parm|name        |Name              |no | Defaults to page name}}
 +
{{Parm|image        |Picture of body |no | just image name}}
 +
{{Parm|caption      |Caption          |no | optional image data}}
 +
{{Parm|symbol      |Symbol            |no | }}
 +
{{Parm|date        |Date of discovery |no | }}
 +
{{Parm|discname    |Name of discoverer |no | }}
 +
{{Parm|origname    |Name origin      |no | }}
 +
{{Parm|primary      |Name of primary  |no | }}
 +
{{Parm|order        |Order from primary |no | }}
 +
{{Parm|periapsis    |Periapsis                  |no | Closest approach}}
 +
{{Parm|apoapsis    |Apoapsis                  |no | Farthest flight}}
 +
{{Parm|semimajor    |Semi-major axis            |no | Average of the two above}}
 +
{{Parm|orbitradius  |Mean distance from primary |no | If not specified or different from above}}
 +
{{Parm|bode        |Bode's Law prediction      |no | Distance predicted by Bode's Law}}
 +
{{Parm|circumference|Orbital circumference    |no | }}
 +
{{Parm|eccentricity |Orbital eccentricity    |no | }}
 +
{{Parm|sidereal    |Sidereal year/month/period |no | Time for one revolution}}
 +
{{Parm|synodic      |Synodic year/month/period  |no | Time for one Earthly zodiacal cycle}}
 +
{{Parm|orbitspeed  |Orbital speed    |no | Speed of body in its orbit}}
 +
{{Parm|inclination  |Inclination      |no | Inclination}}
 +
{{Parm|reference    |Reference plane    |no | Inclined to what plane?}}
 +
{{Parm|siderealday  |Sidereal day      |no | Time for one rotation}}
 +
{{Parm|solar day    |Solar day        |no | Time to display same face to sun}}
 +
{{Parm|rotatespeed  |Rotational speed      |no | Speed of rotation}}
 +
{{Parm|axialtilt    |Axial tilt        |no | Inclination of axis to orbit}}
 +
{{Parm|mass        |Mass              |no | }}
 +
{{Parm|diameter    |Diameter          |no | }}
 +
{{Parm|meanradius  |Mean body radius        |no | }}
 +
{{Parm|equatorradius|Equatorial radius        |no | }}
 +
{{Parm|polarradius  |Polar radius        |no | }}
 +
{{Parm|surfacegrav  |Surface gravity        |no | }}
 +
{{Parm|escapespeed  |Escape speed        |no | }}
 +
{{Parm|surfacearea  |Surface area        |no | }}
 +
{{Parm|landarea    |Land area        |no | }}
 +
{{Parm|waterarea    |Water area        |no | }}
 +
{{Parm|mintemp      |Minimum temperature      |no | }}
 +
{{Parm|meantemp    |Mean temperature        |no | }}
 +
{{Parm|maxtemp      |Maximum temperature      |no | }}
 +
{{Parm|moons        |Number of moons  |no | }}
 +
{{Parm|composition  |Composition      |no | }}
 +
{{Parm|color        |Color            |no | }}
 +
{{Parm|albedo      |Albedo            |no | }}
 +
{{Parm|mfd          |Magnetic flux density      |no | }}
 +
{{Parm|pmdm        |Magnetic moment, present  |no | }}
 +
{{Parm|cmdm        |Magnetic moment, creation  |no |Per Humphreys model (1984) }}
 +
{{Parm|mdt          |Magnetic decay time        |no | }}
 +
{{Parm|mhl          |Magnetic half-life        |no | }}
 +
}}
 +
 +
===Sample Data Block===
 +
The following may be copied and pasted at the top of the page being edited
 +
<pre>
 +
<nowiki>{{</nowiki>Planet
 +
| name=
 +
| image=
 +
| caption=
 +
| symbol=
 +
| date=
 +
| discname=
 +
| origname=
 +
| primary=
 +
| order=
 +
| periapsis=
 +
| apoapsis=
 +
| semimajor=
 +
| orbitradius=
 +
| circumference=
 +
| eccentricity=
 +
| sidereal=
 +
| synodic=
 +
| orbitspeed=
 +
| inclination=
 +
| reference=
 +
| siderealday=
 +
| solarday=
 +
| rotatespeed=
 +
| axialtilt=
 +
| mass=
 +
| density=
 +
| diameter=
 +
| meanradius=
 +
| equatorradius=
 +
| polarradius=
 +
| surfacegrav=
 +
| escapespeed=
 +
| surfacearea=
 +
| meantemp=
 +
| moons=
 +
| composition=
 +
| color=
 +
| albedo=
 +
| mfd=
 +
| pmdm=
 +
| cmdm=
 +
| mdt=
 +
| mhl=
 +
<nowiki>}}</nowiki></pre>
 +
</noinclude>

Latest revision as of 10:27, August 5, 2015

Planet
Orbital characteristics
Physical characteristics

Template: Planet
Use on Astronomy articles
Use for Infobox
Category template applies to page Planets
Template Parameters
(See using templates).
Name Purpose Required? Comment
name Name no Defaults to page name
image Picture of body no just image name
caption Caption no optional image data
symbol Symbol no
date Date of discovery no
discname Name of discoverer no
origname Name origin no
primary Name of primary no
order Order from primary no
periapsis Periapsis no Closest approach
apoapsis Apoapsis no Farthest flight
semimajor Semi-major axis no Average of the two above
orbitradius Mean distance from primary no If not specified or different from above
bode Bode's Law prediction no Distance predicted by Bode's Law
circumference Orbital circumference no
eccentricity Orbital eccentricity no
sidereal Sidereal year/month/period no Time for one revolution
synodic Synodic year/month/period no Time for one Earthly zodiacal cycle
orbitspeed Orbital speed no Speed of body in its orbit
inclination Inclination no Inclination
reference Reference plane no Inclined to what plane?
siderealday Sidereal day no Time for one rotation
solar day Solar day no Time to display same face to sun
rotatespeed Rotational speed no Speed of rotation
axialtilt Axial tilt no Inclination of axis to orbit
mass Mass no
diameter Diameter no
meanradius Mean body radius no
equatorradius Equatorial radius no
polarradius Polar radius no
surfacegrav Surface gravity no
escapespeed Escape speed no
surfacearea Surface area no
landarea Land area no
waterarea Water area no
mintemp Minimum temperature no
meantemp Mean temperature no
maxtemp Maximum temperature no
moons Number of moons no
composition Composition no
color Color no
albedo Albedo no
mfd Magnetic flux density no
pmdm Magnetic moment, present no
cmdm Magnetic moment, creation no Per Humphreys model (1984)
mdt Magnetic decay time no
mhl Magnetic half-life no


Sample Data Block

The following may be copied and pasted at the top of the page being edited

{{Planet
| name= 
| image=
| caption=
| symbol=
| date=
| discname=
| origname=
| primary=
| order=
| periapsis=
| apoapsis=
| semimajor=
| orbitradius=
| circumference=
| eccentricity=
| sidereal=
| synodic=
| orbitspeed=
| inclination=
| reference=
| siderealday=
| solarday=
| rotatespeed=
| axialtilt=
| mass=
| density=
| diameter=
| meanradius=
| equatorradius=
| polarradius=
| surfacegrav=
| escapespeed=
| surfacearea=
| meantemp=
| moons=
| composition=
| color=
| albedo=
| mfd=
| pmdm=
| cmdm=
| mdt=
| mhl=
}}