Difference between revisions of "Template:Infobox comet"

From blackwiki
Jump to navigation Jump to search
imported>Jimp
(alternative)
(colons unnecessary, labelstyle to reduce label linewrapping)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|title       = <includeonly>{{{name|{{PAGENAME}}}}}</includeonly>
+
|title = <includeonly>{{{name|{{PAGENAME}}}}}</includeonly>
|headerstyle = background-color:#FFFFC0
+
|headerstyle = background-color:#FFFFC0
 +
|labelstyle = white-space:nowrap;
  
|image       = {{{image|}}}
+
|image = {{{image|}}}
|caption     = {{{caption|}}}
+
|caption = {{{caption|}}}
  
 
|header1  = {{#if:{{{discoverer|}}}{{{discovery_date|}}}{{{designations|}}}|Discovery}}
 
|header1  = {{#if:{{{discoverer|}}}{{{discovery_date|}}}{{{designations|}}}|Discovery}}
|label2  = Discovered by:
+
|label2  = Discovered by
 
|data2    = {{{discoverer|}}}
 
|data2    = {{{discoverer|}}}
|label3  = Discovery date:
+
|label3  = Discovery date
 
|data3    = {{{discovery_date|}}}
 
|data3    = {{{discovery_date|}}}
|label4  = [[Provisional designation in astronomy|Alternative designations]]:
+
|label4  = [[Provisional designation in astronomy|Alternative<br/>designations]]
 
|data4    = {{{designations|}}}
 
|data4    = {{{designations|}}}
  
 
|header5  = {{#if:{{{epoch|}}}{{{aphelion|}}}{{{perihelion|}}}{{{semimajor|}}}{{{semiminor|}}}{{{orbital_circ|}}}{{{eccentricity|}}}{{{period|}}}{{{avg_speed|}}}{{{max_speed|}}}{{{min_speed|}}}{{{inclination|}}}{{{last_p|}}}{{{next_p|}}}|Orbital characteristics <sup>[{{{source|http://www.minorplanetcenter.net/iau/Ephemerides/Comets/}}} A]</sup>}}
 
|header5  = {{#if:{{{epoch|}}}{{{aphelion|}}}{{{perihelion|}}}{{{semimajor|}}}{{{semiminor|}}}{{{orbital_circ|}}}{{{eccentricity|}}}{{{period|}}}{{{avg_speed|}}}{{{max_speed|}}}{{{min_speed|}}}{{{inclination|}}}{{{last_p|}}}{{{next_p|}}}|Orbital characteristics <sup>[{{{source|http://www.minorplanetcenter.net/iau/Ephemerides/Comets/}}} A]</sup>}}
|label6  = [[Epoch (astronomy)|Epoch]]:
+
|label6  = [[Epoch (astronomy)|Epoch]]
 
|data6    = {{{epoch|}}}
 
|data6    = {{{epoch|}}}
|label7  = [[Apsis|Aphelion]]:
+
|label7  = [[Apsis|Aphelion]]
 
|data7    = {{{aphelion|}}}
 
|data7    = {{{aphelion|}}}
|label8  = [[Apsis|Perihelion]]:
+
|label8  = [[Apsis|Perihelion]]
 
|data8    = {{{perihelion|}}}
 
|data8    = {{{perihelion|}}}
|label9  = [[Semi-major axis]]:
+
|label9  = [[Semi-major axis]]
 
|data9    = {{{semimajor|}}}
 
|data9    = {{{semimajor|}}}
|label10  = [[Semi-minor axis]]:
+
|label10  = [[Semi-minor axis]]
 
|data10  = {{{semiminor|}}}
 
|data10  = {{{semiminor|}}}
|label11  = Orbital [[circumference]]:
+
|label11  = Orbital<br/>[[circumference]]
 
|data11  = {{{orbital_circ|}}}
 
|data11  = {{{orbital_circ|}}}
|label12  = [[Orbital eccentricity|Eccentricity]]:
+
|label12  = [[Orbital eccentricity|Eccentricity]]
 
|data12  = {{{eccentricity|}}}
 
|data12  = {{{eccentricity|}}}
|label13  = [[Orbital period]]:
+
|label13  = [[Orbital period]]
 
|data13  = {{{period|}}}
 
|data13  = {{{period|}}}
|label14  = Avg. [[orbital speed]]:
+
|label14  = Avg. [[orbital speed]]
 
|data14  = {{{avg_speed|}}}
 
|data14  = {{{avg_speed|}}}
|label15  = Max. [[orbital speed]]:
+
|label15  = Max. [[orbital speed]]
 
|data15  = {{{max_speed|}}}
 
|data15  = {{{max_speed|}}}
|label16  = Min. [[orbital speed]]:
+
|label16  = Min. [[orbital speed]]
 
|data16  = {{{min_speed|}}}
 
|data16  = {{{min_speed|}}}
|label17  = [[Orbital inclination|Inclination]]:
+
|label17  = [[Orbital inclination|Inclination]]
 
|data17  = {{{inclination|}}}
 
|data17  = {{{inclination|}}}
|label18  = Last perihelion:
+
|label18  = Last perihelion
 
|data18  = {{{last_p|}}}
 
|data18  = {{{last_p|}}}
|label19  = Next perihelion:
+
|label19  = Next perihelion
 
|data19  = {{{next_p|}}}
 
|data19  = {{{next_p|}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 06:36, 10 August 2012

[[Category:Infobox templates|Template:Remove first word]]

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

This template is intended for use on articles about comets.

Usage

{{Infobox comet
| name           = 
| image          = 
| caption        = 
| discoverer     = 
| discovery_date = 
| designations   = <!-- please use for old-style designations only -->
| epoch          = 
| obs_arc        =
| obs            =
| orbit          =
| aphelion       = 
| perihelion     = 
| semimajor      = 
| semiminor      = 
| orbital_circ   = 
| eccentricity   = 
| period         = 
| avg_speed      = 
| max_speed      = 
| min_speed      = 
| inclination    =
| node           =
| peri           =
| long_peri      =
| tjup           = 
| Earth_moid     =
| Jupiter_moid   =
| dimensions     = 
| albedo         = 
| M1             = 
| M2             = 
| last_p         = 
| next_p         = 
| b_semimajor    = <!--barycentric semimajor axis, generally used only for long-period or hyperbolic comets -->
| b_period       = 
| source         = 
}}

Example

1P/Halley
Lspn comet halley.jpg
A color image of Comet Halley, shown flying to the left aligned flat against the sky
Discovery
Discovered byPrehistoric; named after Edmond Halley
Discovery date1758 (first predicted perihelion)
Alternative
designations
Halley's Comet, Comet Halley
Orbital characteristics A
Epoch2449400.5
(17 February 1994)
Aphelion35.0823 AU
Perihelion0.585978 AU
Semi-major axis17.8341 AU
Eccentricity0.967143
Orbital period75.32 a
Inclination162.263°
Last perihelion9 February 1986
Next perihelion28 July 2061
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox comet
| name           = 1P/Halley
| image          = [[File:Lspn comet halley.jpg|250px]]
| caption        = A color image of Comet Halley, shown flying to the left aligned flat against the sky
| discoverer     = Prehistoric; named after [[Edmond Halley]]
| discovery_date = 1758 (first ''predicted'' perihelion)
| designations   = Halley's Comet, Comet Halley
| epoch          = 2449400.5 <br /> (17 February 1994)
| obs_arc        = 158.39 years
| obs            = 7,428
| aphelion       = 35.0823 [[Astronomical unit|AU]]
| perihelion     = 0.585978 AU
| semimajor      = 17.8341 AU
| semiminor      = 
| orbital_circ   = 
| eccentricity   = 0.967143
| period         = 75.32 [[Julian year (astronomy)|a]]
| avg_speed      = 
| max_speed      = 
| min_speed      = 
| inclination    = 162.263°
| node           = 58.420°
| peri           = 111.332°
| long_peri      = 169.752°
| tjup           = −0.605
| Earth_moid     = 0.064 AU
| dimensions     = 11 km
| M1             = 5.5
| M2             = 13.6
| last_p         = 9 February 1986
| next_p         = 28 July 2061
}}