Content deleted Content added
→Usage: +saros |
Added documentation for new parameters (see template talk for more info) |
||
(34 intermediate revisions by 21 users not shown) | |||
Line 1:
{{
<!--
{{Lua|Module:Solar eclipse}}
{{Infobox solar eclipse
|date = {{{date}}}
|image = {{{image}}}
|caption = {{{caption}}}
|map = {{{map}}}
|map_caption = {{{map_caption}}}
|type_ref = {{{type_ref}}}
|nature = {{{nature}}}
|gamma = {{{gamma}}}
|magnitude = {{{magnitude}}}
|saros = {{{saros}}}
|saros_sequence = {{{saros_sequence}}}
|saros_total = {{{saros_total}}}
|max_eclipse_ref = {{{max_eclipse_ref}}}
|duration = {{{duration}}}
|___location = {{{___location}}}
|coords = {{{coords}}}
|max_width = {{{max_width}}}
|times_ref = {{{times_ref}}}
|start_partial = {{{start_partial}}}
|start_total = {{{start_total}}}
|start_central = {{{start_central}}}
|greatest_eclipse = {{{greatest_eclipse}}}
|end_central = {{{end_central}}}
|end_total = {{{end_total}}}
|end_partial = {{{end_partial}}}
|previous = {{{previous}}}
|next = {{{next}}}
}}
==Basic usage ==
This template uses information from the NASA Solar Eclipse Database when invoked using the following syntax
<syntaxhighlight lang="wikitext" style="font-size:95%; overflow:auto;">
{{Infobox solar eclipse|YYYYMonDD}}
</syntaxhighlight>
Here, <code>YYYY</code> is the year, <code>Mon</code> is the three letter abbreviation for the month, and <code>DD</code> is the two digit abbreviation for the day. For example, <code>2015Mar20</code> for March 20, 2015.
===Images etc.. ===
A given value of <code>YYYYMonDD</code> automatically displays information from a matching date in one of the data pages at [[Special:PrefixIndex/Module:Solar eclipse/db]]. [[Module:Solar eclipse/db/200]] is for 2001–2050. Other template parameters including <code>image</code> may be ignored with no way to override the data page.
== Advanced usage ==
<syntaxhighlight lang="wikitext" style="font-size:95%; overflow:auto;">
{{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 =
|previous =
|next =
}}
</syntaxhighlight>
''nature'' should be "Total", "Annular", "Hybrid" or "Partial" (without speechmarks).
== Microformat ==
{{UF-hcal-geo}}
<
[[Category:Astronomy infobox templates|Solar Eclipse]]
[[Category:Solar eclipse templates]]
[[Category:Solar System templates]]
[[Category:Templates based on the Infobox Lua module]]
}}</includeonly>
|