Difference between revisions of "Template:Infobox solar eclipse"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
m (Plastikspork moved page Template:Infobox Solar eclipse to Template:Infobox solar eclipse: Standard case)
imported>Frietjes
Line 1: Line 1:
<includeonly>{{Infobox
+
<includeonly>{{#invoke:Solar eclipse|box}}</includeonly><noinclude>
|bodyclass    = vevent
 
|bodystyle    = width:25em; text-align:left; font-size:90%;
 
|above        = {{#if:{{{date|}}}|''Solar eclipse of {{{date}}}''|For instructions on use, see [[Template:Infobox Solar eclipse]]}}
 
|aboveclass  = summary
 
|abovestyle  = padding-bottom:0.25em; background:{{{background|{{{bgcolour|}}}}}}; line-height:1.2em; text-align:center; font-size:115%;
 
|image        = {{{image|}}}
 
|imagestyle  = padding-bottom:0.5em;
 
|caption      = {{{caption|}}}
 
|captionstyle = padding-top:0.1em; line-height:1.2em; font-size:90%;
 
|headerstyle  = background:#eee; font-size:105%;
 
|labelstyle  = padding:0 0.5em 0 0; background:transparent; line-height:1.1em;
 
|datastyle    = padding:0; line-height:1.2em; vertical-align:middle;
 
 
 
|data1 = {{#if:{{{map|}}}
 
          | <div style="padding-bottom:0.5em;">{{{map}}}<!--
 
            -->{{#if:{{{map_caption|}}}
 
                | <div style="line-height:1.2em; padding-top:0.1em;"><!--
 
                    --><small>{{{map_caption}}}</small></div><!--
 
            -->}}<!--
 
      -->}}
 
 
 
<!------------------------ Type of eclipse and saros ------------------------->
 
|header2  = Type of eclipse{{{type_ref|}}}
 
 
 
|label3  = Nature
 
|data3    = {{{nature|}}}
 
|label4  = [[Gamma (solar eclipse)|Gamma]]
 
|data4    = {{{gamma|}}}
 
|label5  = [[Magnitude of eclipse|Magnitude]]
 
|data5    = {{{magnitude|}}}
 
 
 
<!------------------------ Maximum eclipse ------------------------->
 
|header7  = Maximum eclipse{{{max_eclipse_ref|}}}
 
|label8  = Duration
 
|data8    = {{{duration|}}}
 
|label9  = Location
 
|data9    = {{{location|}}}
 
|class9  = location
 
|label10  = Coordinates
 
|data10  = {{{coords|}}}
 
|label11  = Max.&nbsp;width of&nbsp;band
 
|data11  = {{{max_width|}}}
 
 
 
<!------------------------ Times ------------------------->
 
|header12 = Times ([[UTC]]){{{times_ref|}}}
 
 
 
|label13  = (P1) Partial begin
 
|data13  = {{{start_partial}}}
 
 
 
|label14  = (U1) Total begin
 
|data14  = {{{start_total}}}
 
 
 
|label15  = (U2) Central begin
 
|data15  = {{{start_central}}}
 
 
 
|label16  = Greatest eclipse
 
|data16  = {{{greatest_eclipse}}}
 
 
 
|label17  = (U3) Central end
 
|data17  = {{{end_central}}}
 
 
 
|label18  = (U4) Total end
 
|data18  = {{{end_total}}}
 
 
 
|label19  = (P4) Partial end
 
|data19  = {{{end_partial}}}
 
 
 
<!------------------------ Event references ------------------------->
 
 
 
|header20  = References
 
 
 
|label21  = [[Saros (astronomy)|Saros]]
 
|data21    = {{{saros|}}} <!--
 
        -->({{{saros_sequence}}} of<!--
 
        --> {{{saros_total}}})
 
 
 
|label22  = Catalog # (SE5000)
 
|data22  = {{{cat|}}}
 
 
 
}}</includeonly><noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
<!---Please add metadata to the  section
 
<!---Please add metadata to the  section
 
     at the bottom of the /doc subpage, not here - thanks!--->
 
     at the bottom of the /doc subpage, not here - thanks!--->
 
</noinclude>
 
</noinclude>

Revision as of 14:33, 3 April 2015

Template documentation[view] [edit] [history] [purge]
Solar eclipse of {{{date}}}
{{{image}}}
{{{caption}}}
{{{map}}}
{{{map_caption}}}
Type of eclipse{{{type_ref}}}
Nature{{{nature}}}
Gamma{{{gamma}}}
Magnitude{{{magnitude}}}
Maximum eclipse{{{max_eclipse_ref}}}
Duration{{{duration}}}
Location{{{location}}}
Coordinates{{{coords}}}
Max. width of band{{{max_width}}}
Times (UTC){{{times_ref}}}
(P1) Partial begin{{{start_partial}}}
(U1) Total begin{{{start_total}}}
(U2) Central begin{{{start_central}}}
Greatest eclipse{{{greatest_eclipse}}}
(U3) Central end{{{end_central}}}
(U4) Total end{{{end_total}}}
(P4) Partial end{{{end_partial}}}
References
Saros{{{saros}}} ({{{saros_sequence}}} of {{{saros_total}}})
[[Category:Infobox templates|Template:Remove first word]]

Basic usage

This template uses information from the NASA Solar Eclipse Database when invoked using the following syntax

{{Infobox solar eclipse|YYYYMonDD}}

Here, YYYY is the year, Mon is the three letter abbreviation for the month, and DD is the two digit abbreviation for the day. For example, 2015Mar20 for March 20, 2015.

Advanced usage

{{Infobox solar eclipse|YYYYMonDD
|date             = <!-- {{Start date|YYYY|MM|DD}} -->
|image            = 
|caption          = 
|map              = 
|map_caption      = 
|type_ref         = 
|nature           = 
|gamma            = 
|magnitude        = 
|saros            = 
|saros_sequence   = 
|saros_total      = 
|max_eclipse_ref  = 
|duration         = 
|location         = 
|coords           = <!-- {{Coord|NNNNN|NNNNN|type:landmark|display=inline,title}} -->
|max_width        = <!-- {{Convert|NNNNN|km|abbr=on}} -->
|times_ref        = 
|start_partial    = 
|start_total      = 
|start_central    = 
|greatest_eclipse = 
|end_central      = 
|end_total        = 
|end_partial      = 
}}

nature should be "Total", "Annular", "Hybrid" or "Partial" (without speechmarks).

Microformat

Template:UF-hcal-geo