Difference between revisions of "Template:Infobox planetary system/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Andrybak
(fix usage of Template:longitem)
imported>Andrybak
(sync with live version (testcase were moved to Template:Infobox planetary system/testcases))
 
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| titlestyle = padding-bottom:0.15em;{{{titlestyle|}}}
+
| titlestyle = padding-bottom:0.15em;
 
| title = {{{title|}}}
 
| title = {{{title|}}}
| image = {{{image|}}}
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
| captionstyle = padding-bottom:0.15em;border-bottom:1px solid #ccf;{{{captionstyle|}}}
+
| captionstyle = padding-bottom:0.15em;border-bottom:1px solid #ccf;
 
| caption = {{{caption|}}}
 
| caption = {{{caption|}}}
  
 
| labelstyle = padding:0.2em 0.5em<!--(to keep longer labels distinct from following data)--> 0 0.1em;line-height:1.2em; <!--(modified {{longitem}})-->
 
| labelstyle = padding:0.2em 0.5em<!--(to keep longer labels distinct from following data)--> 0 0.1em;line-height:1.2em; <!--(modified {{longitem}})-->
  
| label2 = Age
+
| label1 = Age
data2 = {{{age|}}}
+
data1 = {{{age|}}}
  
| label4 = Location
+
| label2 = Location
data4 = {{{location|}}}
+
data2 = {{{location|}}}
  
| label6 = [[Right ascension|{{allow wrap|Right ascension}}]]
+
| label3 = [[Right ascension|{{allow wrap|Right ascension}}]]
data6 = {{{ascension|}}}
+
data3 = {{{ascension|}}}
  
| label8 = [[Declination]]
+
| label4 = [[Declination]]
data8 = {{{declination|}}}
+
data4 = {{{declination|}}}
  
| label10 = System mass
+
| label5  = System mass
data10 = {{{system_mass|}}}
+
data5  = {{{system_mass|}}}
  
| label12 = Nearest star
+
| label6  = Nearest star
data12 = {{{neareststar|}}}
+
data6  = {{{neareststar|}}}
  
| label14 = {{nowrap|Nearest known}} {{nowrap|[[planetary system]]}}
+
| label7  = {{nowrap|Nearest known}} {{nowrap|[[planetary system]]}}
data14 = {{{nearestplanetary|}}}
+
data7  = {{{nearestplanetary|}}}
  
 
<!------------------ Planetary system --------------------->
 
<!------------------ Planetary system --------------------->
| class20 = navbox-abovebelow
+
| class8  = navbox-abovebelow
| header20 = {{#if:{{{semimajoraxis|}}}{{{protoplanetarydisc|}}}{{{Kuiper_cliff|}}}{{{stars|}}}{{{planets|}}}{{{dwarfplanets|}}}{{{satellites|}}}{{{minorplanets|}}}{{{comets|}}}{{{roundsat|}}} |Planetary system}}
+
| header8 = {{#if:{{{semimajoraxis|}}}{{{protoplanetarydisc|}}}{{{Kuiper_cliff|}}}{{{stars|}}}{{{planets|}}}{{{dwarfplanets|}}}{{{satellites|}}}{{{minorplanets|}}}{{{comets|}}}{{{roundsat|}}} |Planetary system}}
  
| label22 = {{nowrap|Semi-major axis}} of outer&nbsp;{{#if:{{{noknown_planets|}}}||known&nbsp;}}planet {{#if:{{{outerplanetname|}}}|{{nobold|({{{outerplanetname}}})}}}}
+
| label9  = {{nowrap|Semi-major axis}} of outer&nbsp;{{#if:{{{noknown_planets|}}}||known&nbsp;}}planet {{#if:{{{outerplanetname|}}}|{{nobold|({{{outerplanetname}}})}}}}
data22 = {{{semimajoraxis|}}}
+
data9  = {{{semimajoraxis|}}}
  
| label24 = [[Protoplanetary disk|{{allow wrap|Proto-planetary disc}}]]&nbsp;size
+
| label10 = [[Protoplanetary disk|{{allow wrap|Proto-planetary disc}}]]&nbsp;size
data24 = {{{protoplanetarydisc|}}}
+
data10 = {{{protoplanetarydisc|}}}
  
| label26 = {{nowrap|Distance to [[Kuiper belt#"Kuiper cliff"|Kuiper cliff]]}}
+
| label11 = {{nowrap|Distance to [[Kuiper cliff]]}}
data26 = {{{Kuiper_cliff|}}}
+
data11 = {{{Kuiper_cliff|}}}
  
 
<!------------Populations-------------->
 
<!------------Populations-------------->
| header30 = {{#if:{{{stars|}}}{{{planets|}}}{{{dwarfplanets|}}}{{{satellites|}}}{{{minorplanets|}}}{{{comets|}}}{{{roundsat|}}}
+
| header12 = {{#if:{{{stars|}}}{{{planets|}}}{{{dwarfplanets|}}}{{{satellites|}}}{{{minorplanets|}}}{{{comets|}}}{{{roundsat|}}}
 
               | <div style="text-align:center;padding-bottom:0.15em;border-bottom:1px solid #ccf;">Populations</div>
 
               | <div style="text-align:center;padding-bottom:0.15em;border-bottom:1px solid #ccf;">Populations</div>
 
             }}
 
             }}
  
| label32 = {{#if:{{{noknown_stars|}}} |Stars |Known stars}}
+
| label13 = {{#if:{{{noknown_stars|}}} |Stars |Known stars}}
data32 = {{{stars|}}}
+
data13 = {{{stars|}}}
  
| label34 = {{#if:{{{noknown_planets|}}} |Planets |Known planets}}
+
| label14 = {{#if:{{{noknown_planets|}}} |Planets |Known planets}}
data34 = {{{planets|}}}
+
data14 = {{{planets|}}}
  
| label36 = Known [[Dwarf planet|{{allow wrap|dwarf planets}}]]
+
| label15 = Known [[Dwarf planet|{{allow wrap|dwarf planets}}]]
data36 = {{{dwarfplanets|}}}
+
data15 = {{{dwarfplanets|}}}
  
| label38 = Known [[Natural satellite|{{allow wrap|natural satellites}}]]
+
| label16 = Known [[Natural satellite|{{allow wrap|natural satellites}}]]
data38 = {{{satellites|}}}
+
data16 = {{{satellites|}}}
  
| label40 = Known [[Minor planet|{{allow wrap|minor planets}}]]
+
| label17 = Known [[Minor planet|{{allow wrap|minor planets}}]]
data40 = {{{minorplanets|}}}
+
data17 = {{{minorplanets|}}}
  
| label42 = Known [[comet]]s
+
| label18 = Known [[comet]]s
data42 = {{{comets|}}}
+
data18 = {{{comets|}}}
  
| label44 = Identified [[{{{roundsatlink|Natural satellite#Shape}}}|{{allow wrap|rounded satellites}}]]
+
| label19 = Identified [[{{{roundsatlink|Natural satellite#Shape}}}|{{allow wrap|rounded satellites}}]]
data44 = {{{roundsat|}}}
+
data19 = {{{roundsat|}}}
  
 
<!------------- Orbit about Galactic Center --------------->
 
<!------------- Orbit about Galactic Center --------------->
| class50 = navbox-abovebelow
+
| class20 = navbox-abovebelow
| header50 = {{#if:{{{inclination|}}}{{{galacticcenter|}}}{{{orbitalspeed|}}}{{{orbitalperiod|}}} |{{nowrap|Orbit about [[Galactic Center]]}} }}
+
| header20 = {{#if:{{{inclination|}}}{{{galacticcenter|}}}{{{orbitalspeed|}}}{{{orbitalperiod|}}} |{{nowrap|Orbit about [[Galactic Center]]}} }}
  
| label52 = {{nowrap|[[Invariable plane|Invariable]]-to-}}[[Galactic plane|{{allow wrap|galactic plane}}]] inclination
+
| label21 = {{nowrap|[[Invariable plane|Invariable]]-to-}}[[Galactic plane|{{allow wrap|galactic plane}}]] inclination
data52 = {{{inclination|}}}
+
data21 = {{{inclination|}}}
  
| label54 = Distance&nbsp;to Galactic Center
+
| label22 = Distance&nbsp;to Galactic Center
data54 = {{{galacticcenter|}}}
+
data22 = {{{galacticcenter|}}}
  
| label56 = Orbital speed
+
| label23 = Orbital speed
data56 = {{{orbitalspeed|}}}
+
data23 = {{{orbitalspeed|}}}
  
| label58 = Orbital period
+
| label24 = Orbital period
data58 = {{{orbitalperiod|}}}
+
data24 = {{{orbitalperiod|}}}
  
 
<!-------------------- Star-related ----------------------->
 
<!-------------------- Star-related ----------------------->
| class60 = navbox-abovebelow
+
| class25 = navbox-abovebelow
| header60 = {{#if:{{{spectral|}}}{{{variable|}}}{{{frostline|}}}{{{heliopause|}}}{{{hillsphere|}}} |Star-related properties}}
+
| header25 = {{#if:{{{spectral|}}}{{{variable|}}}{{{frostline|}}}{{{heliopause|}}}{{{hillsphere|}}} |Star-related properties}}
 
 
| label62 = [[Stellar classification|Spectral type]]
 
|  data62 = {{{spectral|}}}
 
 
 
| label64 = [[Variable star|Variable type]]
 
|  data64 = {{{variable|}}}
 
 
 
| label66 = [[Frost line (astrophysics)|Frost line]]
 
|  data66 = {{{frostline|}}}
 
 
 
| label68 = {{nowrap|Distance to [[Heliopause (astronomy)|heliopause]]}}
 
|  data68 = {{{heliopause|}}}
 
 
 
| label70 = [[Hill sphere]] radius
 
|  data70 = {{{hillsphere|}}}
 
  
}}<noinclude><!--
+
| label26 = [[Stellar classification|Spectral type]]
 +
|  data26 = {{{spectral|}}}
  
 +
| label27 = [[Variable star|Variable type]]
 +
|  data27 = {{{variable|}}}
  
 +
| label28 = [[Frost line (astrophysics)|Frost line]]
 +
|  data28 = {{{frostline|}}}
  
-->
+
| label29 = {{nowrap|Distance to [[Heliopause (astronomy)|heliopause]]}}
{{float|{{purge button}}}}
+
| data29 = {{{heliopause|}}}
  
{{Testcase table |_caption=
+
| label30 = [[Hill sphere]] radius
| title = Solar System
+
| data30 = {{{hillsphere|}}}
| image = [[File:Planets2013.jpg|300px|The Solar System. Sizes but not distances to scale.]]
 
| caption = {{longitem|The [[Sun]] and [[List of gravitationally rounded objects of the Solar System#Planets|planets of the Solar System]]. Sizes but not distances are to scale.}}
 
| age = 4.568 billion years
 
| location = {{longitem|{{ublist|class=nowrap |[[Local Interstellar Cloud]], [[Local Bubble]], |[[Orion–Cygnus Arm]], [[Milky Way]]}}}}
 
| system_mass = 1.0014 [[Solar mass]]es
 
| neareststar = {{longitem|{{ublist|class=nowrap |[[Proxima Centauri]]{{nbsp|2}}{{smaller|(4.22 [[Light-year|ly]])}} |[[Alpha Centauri]] system {{smaller|(4.37 ly)}}}}}}
 
| nearestplanetary = {{nowrap|Alpha Centauri system{{nbsp|2}}{{smaller|(4.37 ly)}}}}
 
| semimajoraxis = {{nowrap|30.10 [[Astronomical unit|AU]]{{nbsp|2}}{{smaller|(4.503 billion km)}}}}
 
| Kuiper_cliff = 50 AU
 
| stars = 1{{nbsp|2}}{{smaller|([[Sun]])}}
 
| noknown_stars = yes
 
| planets = {{longitem|style=line-height:1.1em|{{smaller|{{hlist|8 &nbsp;([[Mercury (planet)|Mercury]]|[[Venus]]|[[Earth]]|[[Mars]]|<br/>[[Jupiter]]|[[Saturn]]|[[Uranus]]|[[Neptune]])}}}}}}
 
| outerplanetname = [[Neptune]]
 
| noknown_planets = yes
 
| dwarfplanets = {{longitem|Possibly several hundred;<ref>{{cite web |url=http://www.mikebrownsplanets.com/2011/08/free-dwarf-planets.html |author=[[Michael E. Brown|Mike Brown]] |title=Free the dwarf planets! |date=August 23, 2011 |work="Mike Brown's Planets (self-published)"}}</ref><br/>five currently recognized by the [[International Astronomical Union|IAU]] {{smaller|([[Ceres (dwarf planet)|Ceres]] &middot; [[Pluto]] &middot; [[Haumea (dwarf planet)|Haumea]] &middot; [[Makemake (dwarf planet)|Makemake]] &middot; [[Eris (dwarf planet)|Eris]])}}}}
 
| satellites = {{longitem|427 {{hlist|{{smaller|(170 planetary<ref name="planetarymoons">{{cite web |url=http://www.dtm.ciw.edu/users/sheppard/satellites/ |title=The Giant Planet Satellite and Moon Page |author=Sheppard, Scott S. |publisher=Departament of Terrestrial Magnetism at Carniege Institution for science |accessdate=2013-07-23}}</ref>}} |{{smaller|257 [[minor planet]]ary<ref name="MPMJohnston">{{cite web |date=2013-12-06 |title=Asteroids with Satellites |publisher=Johnston's Archive |author=Wm. Robert Johnston |url=http://www.johnstonsarchive.net/astro/asteroidmoons.html |accessdate=2013-12-12}}</ref>)}}}}}}
 
| minorplanets = 638,836{{nbsp|2}}{{smaller|(as of 2014-04-15)<ref name="JPLbodies">{{cite web |title=How Many Solar System Bodies |publisher=NASA/JPL Solar System Dynamics |url=http://ssd.jpl.nasa.gov/?body_count |accessdate=2013-12-12}}</ref>}}
 
| comets = 3,263{{nbsp|2}}{{smaller|(as of 2014-04-15)<ref name=JPLbodies/>}}
 
| roundsat = 19
 
| roundsatlink = List of gravitationally rounded objects of the Solar System#Satellite planemos
 
| inclination = 60.19°8{{nbsp|2}}{{smaller|(ecliptic)}}<!---If anyone can find a cited value for the inclination of the Solar System's invariable plane to the galactic plane, please replace this value--->
 
| galacticcenter = 27,000&thinsp;±&thinsp;1,000 ly
 
| orbitalspeed = 220 km/s
 
| orbitalperiod = 225–250 [[Myr]]
 
| spectral = [[G-type main-sequence star|G2V]]
 
| frostline = ≈5 AU<ref name="Mumma">{{Cite journal | last1 = Mumma | first1 = M. J. | last2 = Disanti | first2 = M. A. | last3 = Dello Russo | first3 = N. | last4 = Magee-Sauer | first4 = K. | last5 = Gibb | first5 = E. | last6 = Novak | first6 = R. | doi = 10.1016/S0273-1177(03)00578-7 | title = Remote infrared observations of parent volatiles in comets: A window on the early solar system | journal = Advances in Space Research | volume = 31 | issue = 12 | pages = 2563 | year = 2003 | pmid =  | pmc = }}</ref>
 
| heliopause = ≈120 AU
 
| hillsphere = ≈1–2 ly
 
}}
 
  
{{Template reference list}}
+
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 10:24, 30 June 2020

Template documentation[view] [edit] [history] [purge]

Syntax

{{Infobox planetary system
| title = 
| image = 
| caption = 
| age = 
| location = 
| ascension = 
| declination = 
| system_mass = 
| neareststar = 
| nearestplanetary = 
| semimajoraxis = 
| proto-planetarydisc = 
| Kuiper_cliff = 
| stars = 
| planets = 
| dwarfplanets = 
| satellites = 
| minorplanets = 
| comets = 
| roundsat = 
| roundsatlink = 
| inclination = 
| galacticcenter = 
| orbitalspeed = 
| orbitalperiod = 
| spectral = 
| variable = 
| frostline = 
| heliopause = 
| hillsphere = 
| noknown_stars = 
| noknown_planets = 
| outerplanetname = 
}}

Notes

  • noknown_stars – If anything is in this field, then the word "known" will NOT precede "stars" in the "No. of stars" section.
  • noknown_planets – If anything is in this field, then the word "known" will NOT precede "planets" in the "No. of planets" and "Semi-major axis of outer planet" sections.
  • For info on using the Infobox in general, see {{Infobox}}

Example

Solar System
A representative image of the Solar System with sizes but not distances to scale
The Sun and planets of the Solar System. Sizes but not distances are to scale.
Age4.568 billion years
Location
System mass1.0014 Solar masses
Nearest star
Nearest known planetary systemAlpha Centauri system  (4.37 ly)
Planetary system
Semi-major axis of outer planet (Neptune)30.10 AU  (4.503 billion km)
Distance to Kuiper cliff50 AU
Populations
Stars1  (Sun)
Planets
{{{1}}}
Known [[Dwarf planet|
  1. REDIRECT Template:Wrap]]
Possibly several hundred;
five currently recognized by the IAU
Known [[Natural satellite|
  • REDIRECT Template:Wrap]]
  • 427
    Known [[Minor planet|
  • REDIRECT Template:Wrap]]
  • 638,836  (as of 2014-04-15)
    Known comets3,263  (as of 2014-04-15)
    Identified [[List of gravitationally rounded objects of the Solar System#Satellite planemos|
  • REDIRECT Template:Wrap]]
  • 19
    Orbit about Galactic Center
    Invariable-to-[[Galactic plane|
  • REDIRECT Template:Wrap]] inclination
  • 60.19°8  (ecliptic)
    Distance to Galactic Center27,000 ± 1,000 ly
    Orbital speed220 km/s
    Orbital period225–250 Myr
    Star-related properties
    Spectral typeG2V
    Frost line≈5 AU
    Distance to heliopause≈120 AU
    Hill sphere radius≈1–2 ly

    This example, from a version in Solar System with references removed, uses most of the available parameters.

    {{Infobox planetary system
    | title = Solar System
    | image = Planets2013.jpg
    | image_style = 300px
    | image_alt = A representative image of the Solar System with sizes but not distances to scale
    | caption = {{longitem|The [[Sun]] and [[List of gravitationally rounded objects of the Solar System#Planets|planets of the Solar System]]. Sizes but not distances are to scale.}}
    | age = 4.568 billion years
    | location = {{longitem|{{ublist|class=nowrap |[[Local Interstellar Cloud]], [[Local Bubble]], |[[Orion–Cygnus Arm]], [[Milky Way]]}}}}
    | system_mass = 1.0014 [[Solar mass]]es
    | neareststar = {{longitem|{{ublist|class=nowrap |[[Proxima Centauri]]{{nbsp|2}}{{smaller|(4.22 [[Light-year|ly]])}} |[[Alpha Centauri]] system {{smaller|(4.37 ly)}}}}}}
    | nearestplanetary = {{nowrap|Alpha Centauri system{{nbsp|2}}{{smaller|(4.37 ly)}}}}
    | semimajoraxis = {{nowrap|30.10 [[Astronomical unit|AU]]{{nbsp|2}}{{smaller|(4.503 billion km)}}}}
    | Kuiper_cliff = 50 AU
    | stars = 1{{nbsp|2}}{{smaller|([[Sun]])}}
    | noknown_stars = yes
    | planets = {{longitem|style=line-height:1.1em|<div style="font-size:smaller">{{hlist|8  ([[Mercury (planet)|Mercury]]|[[Venus]]|[[Earth]]|[[Mars]]|<br/>[[Jupiter]]|[[Saturn]]|[[Uranus]]|[[Neptune]])}} </div>}}
    | outerplanetname = [[Neptune]]
    | noknown_planets = yes
    | dwarfplanets = {{longitem|Possibly several hundred;<br/>five currently recognized by the [[International Astronomical Union|IAU]] {{smaller|{{hlist|([[Ceres (dwarf planet)|Ceres]]|[[Pluto]]|[[Haumea (dwarf planet)|Haumea]]|[[Makemake (dwarf planet)|Makemake]]|[[Eris (dwarf planet)|Eris]])}}}} }}
    | satellites = {{longitem|427 {{hlist|{{smaller|(170 planetary}} |{{smaller|257 [[minor planet]]ary)}} }} }}
    | minorplanets = 638,836{{nbsp|2}}{{smaller|(as of 2014-04-15)}}
    | comets = 3,263{{nbsp|2}}{{smaller|(as of 2014-04-15)}}
    | roundsat = 19
    | roundsatlink = List of gravitationally rounded objects of the Solar System#Satellite planemos
    | inclination = 60.19°8{{nbsp|2}}{{smaller|(ecliptic)}}
    | galacticcenter = 27,000 ± 1,000 ly
    | orbitalspeed = 220 km/s
    | orbitalperiod = 225–250 [[Myr]]
    | spectral = [[G-type main-sequence star|G2V]]
    | frostline = ≈5 AU
    | heliopause = ≈120 AU
    | hillsphere = ≈1–2 ly
    }}