Difference between revisions of "Template:Infobox comet"

From blackwiki
Jump to navigation Jump to search
imported>Huntster
(Fix some redirects.)
imported>Huntster
(Overhaul with standardised Infobox format.)
Line 1: Line 1:
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%" cellspacing="2"
+
{{Infobox
|+ '''{{{name|For instructions on use, see [[Template:Infobox comet]]}}}'''
+
|title        = <includeonly>{{{name|{{PAGENAME}}}}}</includeonly>
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">{{{image}}} {{#if: {{{caption|}}} | <br /><small>{{{caption}}}}}</small></td> </tr>}}<!--
+
|headerstyle  = background-color:#FFFFC0
  
--><tr><th style="background-color: #FFFFC0" colspan="2" align="center">Discovery</td></tr><!--
+
|image        = {{{image|}}}
-->{{#if: {{{discoverer|}}} | <tr> <th>Discovered by:</th> <td>{{{discoverer}}}</td> </tr>}}<!--
+
|caption      = {{{caption|}}}
-->{{#if: {{{discovery_date|}}} | <tr> <th>Discovery date:</th> <td>{{{discovery_date}}}</td> </tr>}}<!--
 
-->{{#if: {{{designations|}}} | <tr> <th>[[Provisional designation in astronomy|Alternate designations]]:</th> <td>{{{designations}}}</td> </tr>}}<!--
 
  
--><tr><th style="background-color: #FFFFC0" colspan="2" align="center">Orbital characteristics <sup>[http://www.minorplanetcenter.net/iau/Ephemerides/Comets/ A]</sup></td></tr><!--
+
|header1  = {{#if:{{{discoverer|}}{{discovery_date|}}{{designations|}}|Discovery}}
-->{{#if: {{{epoch|}}} | <tr> <th>[[Epoch (astronomy)|Epoch]]:</th> <td>{{{epoch}}}</td> </tr>}}<!--
+
|label2  = Discovered by:
-->{{#if: {{{aphelion|}}} | <tr> <th>[[Apsis|Aphelion]]:</th> <td>{{{aphelion}}}</td> </tr>}}<!--
+
|data2    = {{{discoverer|}}}
-->{{#if: {{{perihelion|}}} | <tr> <th>[[Apsis|Perihelion]]:</th> <td>{{{perihelion}}}</td> </tr>}}<!--
+
|label3  = Discovery date:
-->{{#if: {{{semimajor|}}} | <tr> <th>[[Semi-major axis]]:</th> <td>{{{semimajor}}}</td> </tr>}}<!--
+
|data3    = {{{discovery_date|}}}
-->{{#if: {{{semiminor|}}} | <tr> <th>[[Semi-minor axis]]:</th> <td>{{{semiminor}}}</td> </tr>}}<!--
+
|label4  = [[Provisional designation in astronomy|Alternate designations]]:
-->{{#if: {{{orbital_circ|}}} | <tr> <th>Orbital [[circumference]]:</th> <td>{{{orbital_circ}}}</td> </tr>}}<!--
+
|data4    = {{{designations|}}}
-->{{#if: {{{eccentricity|}}} | <tr> <th>[[Orbital eccentricity|Eccentricity]]:</th> <td>{{{eccentricity}}}</td> </tr>}}<!--
 
-->{{#if: {{{period|}}} | <tr> <th>[[Orbital period]]:</th> <td>{{{period}}}</td> </tr>}}<!--
 
-->{{#if: {{{avg_speed|}}} | <tr> <th>Avg. [[orbital speed]]:</th> <td>{{{avg_speed}}}</td> </tr>}}<!--
 
-->{{#if: {{{max_speed|}}} | <tr> <th>Max. [[orbital speed]]:</th> <td>{{{max_speed}}}</td> </tr>}}<!--
 
-->{{#if: {{{min_speed|}}} | <tr> <th>Min. [[orbital speed]]:</th> <td>{{{min_speed}}}</td> </tr>}}<!--
 
-->{{#if: {{{inclination|}}} | <tr> <th>[[Orbital inclination|Inclination]]:</th> <td>{{{inclination}}}</td> </tr>}}<!--
 
-->{{#if: {{{last_p|}}} | <tr> <th>Last perihelion:</th> <td>{{{last_p}}}</td> </tr>}}<!--
 
-->{{#if: {{{next_p|}}} | <tr> <th>Next perihelion:</th> <td>{{{next_p}}}</td> </tr>}}
 
|}<noinclude>
 
<br clear="all" />
 
== Usage ==
 
{{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;<br />Named after [[Edmond Halley]]
 
| discovery_date = 1758 (first '''predicted''' perihelion)
 
| designations  = <!-- please use for old-style designations only -->
 
| epoch          = 2449400.5<br />(February 17, 1994)
 
| apherion      = 35.1 AU
 
| perihelion    = 0.586 AU
 
| semimajor      = 17.8 [[Astronomical unit|AU]]
 
| semiminor      =
 
| orbital_circ  =
 
| eccentricity  = 0.967
 
| period        = 75.3 [[Julian year (astronomy)|Julian Years]]
 
| avg_speed      =
 
| max_speed      =
 
| min_speed      =
 
| inclination    = 162.3°
 
| last_p        = February 9, 1986
 
| next_p        = July 28, 2061
 
}}
 
  
{| style="background: transparent;"
+
|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>[http://www.minorplanetcenter.net/iau/Ephemerides/Comets/ A]</sup>}}
|<pre>{{Infobox comet
+
|label6  = [[Epoch (astronomy)|Epoch]]:
| name          =
+
|data6    = {{{epoch|}}}
| image          =
+
|label7  = [[Apsis|Aphelion]]:
| caption        =
+
|data7    = {{{aphelion|}}}
| discoverer    =
+
|label8  = [[Apsis|Perihelion]]:
| discovery_date =
+
|data8    = {{{perihelion|}}}
| designations  = <!-- please use for old-style designations only -->
+
|label9  = [[Semi-major axis]]:
| aphelion       =
+
|data9    = {{{semimajor|}}}
| perihelion     =
+
|label10  = [[Semi-minor axis]]:
| semimajor     =
+
|data10  = {{{semiminor|}}}
| semiminor     =
+
|label11  = Orbital [[circumference]]:
| orbital_circ   =
+
|data11  = {{{orbital_circ|}}}
| eccentricity   =
+
|label12  = [[Orbital eccentricity|Eccentricity]]:
| period         =
+
|data12  = {{{eccentricity|}}}
| avg_speed     =
+
|label13  = [[Orbital period]]:
| max_speed     =
+
|data13  = {{{period|}}}
| min_speed     =
+
|label14  = Avg. [[orbital speed]]:
| inclination   =
+
|data14  = {{{avg_speed|}}}
| last_p         =
+
|label15  = Max. [[orbital speed]]:
| next_p         =
+
|data15  = {{{max_speed|}}}
}}</pre>
+
|label16  = Min. [[orbital speed]]:
|}
+
|data16  = {{{min_speed|}}}
 
+
|label17  = [[Orbital inclination|Inclination]]:
[[Category:Astronomy infobox templates|comet]]
+
|data17  = {{{inclination|}}}
 
+
|label18  = Last perihelion:
[[be-x-old:Шаблён:Камэта]]
+
|data18  = {{{last_p|}}}
[[de:Vorlage:Infobox Komet]]
+
|label19  = Next perihelion:
[[es:Plantilla:Ficha de cuerpo celeste]]
+
|data19  = {{{next_p|}}}
[[fa:الگو:جعبه اطلاعات دنباله‌دار]]
+
}}<noinclude>
[[fr:Modèle:Infobox Comète]]
+
{{Documentation}}
[[ka:თარგი:ინფოდაფა კომეტა]]
 
[[ja:Template:彗星]]
 
[[nn:Mal:Komet]]
 
[[pl:Szablon:Kometa infobox]]
 
[[ru:Шаблон:Комета]]
 
[[sk:Šablóna:Infobox Kométa]]
 
[[uk:Шаблон:Комета]]
 
[[vi:Bản mẫu:Infobox Comet]]
 
[[zh:Template:Infobox Comet]]
 
 
</noinclude>
 
</noinclude>

Revision as of 05:56, 16 December 2011

Discovery
Orbital characteristics A

[[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 by:Prehistoric; named after Edmond Halley
Discovery date:1758 (first predicted perihelion)
Alternate designations:Halley's Comet, Comet Halley
Orbital characteristics A
Epoch:2449400.5
(17 February 1994)
Aphelion:35.0823 AU
Perihelion:0.585978 AU
Semi-major axis:17.8341 AU
Eccentricity:0.967143
Orbital period:75.32 a
Inclination:162.263°
Last perihelion:9 February 1986
Next perihelion:28 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
}}