Difference between revisions of "Template:Infobox planetary system/sandbox"
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 = 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 = 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}})--> | ||
| − | | | + | | label1 = Age |
| − | | | + | | data1 = {{{age|}}} |
| − | | | + | | label2 = Location |
| − | | | + | | data2 = {{{location|}}} |
| − | | | + | | label3 = [[Right ascension|{{allow wrap|Right ascension}}]] |
| − | | | + | | data3 = {{{ascension|}}} |
| − | | | + | | label4 = [[Declination]] |
| − | | | + | | data4 = {{{declination|}}} |
| − | | | + | | label5 = System mass |
| − | | | + | | data5 = {{{system_mass|}}} |
| − | | | + | | label6 = Nearest star |
| − | | | + | | data6 = {{{neareststar|}}} |
| − | | | + | | label7 = {{nowrap|Nearest known}} {{nowrap|[[planetary system]]}} |
| − | | | + | | data7 = {{{nearestplanetary|}}} |
<!------------------ Planetary system ---------------------> | <!------------------ Planetary system ---------------------> | ||
| − | | | + | | class8 = navbox-abovebelow |
| − | | | + | | header8 = {{#if:{{{semimajoraxis|}}}{{{protoplanetarydisc|}}}{{{Kuiper_cliff|}}}{{{stars|}}}{{{planets|}}}{{{dwarfplanets|}}}{{{satellites|}}}{{{minorplanets|}}}{{{comets|}}}{{{roundsat|}}} |Planetary system}} |
| − | | | + | | label9 = {{nowrap|Semi-major axis}} of outer {{#if:{{{noknown_planets|}}}||known }}planet {{#if:{{{outerplanetname|}}}|{{nobold|({{{outerplanetname}}})}}}} |
| − | | | + | | data9 = {{{semimajoraxis|}}} |
| − | | | + | | label10 = [[Protoplanetary disk|{{allow wrap|Proto-planetary disc}}]] size |
| − | | | + | | data10 = {{{protoplanetarydisc|}}} |
| − | | | + | | label11 = {{nowrap|Distance to [[Kuiper cliff]]}} |
| − | | | + | | data11 = {{{Kuiper_cliff|}}} |
<!------------Populations--------------> | <!------------Populations--------------> | ||
| − | | | + | | 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> | ||
}} | }} | ||
| − | | | + | | label13 = {{#if:{{{noknown_stars|}}} |Stars |Known stars}} |
| − | | | + | | data13 = {{{stars|}}} |
| − | | | + | | label14 = {{#if:{{{noknown_planets|}}} |Planets |Known planets}} |
| − | | | + | | data14 = {{{planets|}}} |
| − | | | + | | label15 = Known [[Dwarf planet|{{allow wrap|dwarf planets}}]] |
| − | | | + | | data15 = {{{dwarfplanets|}}} |
| − | | | + | | label16 = Known [[Natural satellite|{{allow wrap|natural satellites}}]] |
| − | | | + | | data16 = {{{satellites|}}} |
| − | | | + | | label17 = Known [[Minor planet|{{allow wrap|minor planets}}]] |
| − | | | + | | data17 = {{{minorplanets|}}} |
| − | | | + | | label18 = Known [[comet]]s |
| − | | | + | | data18 = {{{comets|}}} |
| − | | | + | | label19 = Identified [[{{{roundsatlink|Natural satellite#Shape}}}|{{allow wrap|rounded satellites}}]] |
| − | | | + | | data19 = {{{roundsat|}}} |
<!------------- Orbit about Galactic Center ---------------> | <!------------- Orbit about Galactic Center ---------------> | ||
| − | | | + | | class20 = navbox-abovebelow |
| − | | | + | | header20 = {{#if:{{{inclination|}}}{{{galacticcenter|}}}{{{orbitalspeed|}}}{{{orbitalperiod|}}} |{{nowrap|Orbit about [[Galactic Center]]}} }} |
| − | | | + | | label21 = {{nowrap|[[Invariable plane|Invariable]]-to-}}[[Galactic plane|{{allow wrap|galactic plane}}]] inclination |
| − | | | + | | data21 = {{{inclination|}}} |
| − | | | + | | label22 = Distance to Galactic Center |
| − | | | + | | data22 = {{{galacticcenter|}}} |
| − | | | + | | label23 = Orbital speed |
| − | | | + | | data23 = {{{orbitalspeed|}}} |
| − | | | + | | label24 = Orbital period |
| − | | | + | | data24 = {{{orbitalperiod|}}} |
<!-------------------- Star-related -----------------------> | <!-------------------- Star-related -----------------------> | ||
| − | | | + | | class25 = navbox-abovebelow |
| − | | | + | | header25 = {{#if:{{{spectral|}}}{{{variable|}}}{{{frostline|}}}{{{heliopause|}}}{{{hillsphere|}}} |Star-related properties}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | + | | 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]]}} | |
| − | {{ | + | | data29 = {{{heliopause|}}} |
| − | + | | label30 = [[Hill sphere]] radius | |
| − | + | | data30 = {{{hillsphere|}}} | |
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | {{ | + | }}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 10:24, 30 June 2020
| This is the template sandbox page for Template:Infobox planetary system (diff). See also the companion subpage for test cases. |
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
![]() The Sun and planets of the Solar System. Sizes but not distances are to scale. | |
| Age | 4.568 billion years |
|---|---|
| Location | |
| System mass | 1.0014 Solar masses |
| Nearest star | |
| Nearest known planetary system | Alpha Centauri system (4.37 ly) |
| Planetary system | |
| Semi-major axis of outer planet (Neptune) | 30.10 AU (4.503 billion km) |
| Distance to Kuiper cliff | 50 AU |
Populations | |
| Stars | 1 (Sun) |
| Planets | {{{1}}} |
Known [[Dwarf planet|
| |
| Known [[Natural satellite|
| 427
|
| Known [[Minor planet|
| 638,836 (as of 2014-04-15) |
| Known comets | 3,263 (as of 2014-04-15) |
| Identified [[List of gravitationally rounded objects of the Solar System#Satellite planemos|
| 19 |
| Orbit about Galactic Center | |
| Invariable-to-[[Galactic plane|
| 60.19°8 (ecliptic) |
| Distance to Galactic Center | 27,000 ± 1,000 ly |
| Orbital speed | 220 km/s |
| Orbital period | 225–250 Myr |
| Star-related properties | |
| Spectral type | G2V |
| 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
}}
| The above documentation is transcluded from Template:Infobox planetary system/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
