Content deleted Content added
+fr |
Added documentation for new parameters (see template talk for more info) |
||
(27 intermediate revisions by 16 users not shown) | |||
Line 1:
{{documentation subpage}}
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
=== Usage ===▼
|date = {{{date}}}
<pre style="font-size:95%; overflow:auto;">▼
|image = {{{image}}}
▲{{Infobox Solar eclipse
|
|
|
|
|nature = {{{nature}}}
|map_caption = ▼
|
|
|
|saros_sequence = {{{saros_sequence}}}▼
|magnitude = ▼
|
|max_eclipse_ref = {{{max_eclipse_ref}}}▼
▲|saros_sequence =
|duration = {{{duration}}}
|saros_total = ▼
|___location = {{{___location}}}
▲|max_eclipse_ref =
|
|
|
|start_partial = {{{start_partial}}}▼
|
|start_central = {{{start_central}}}▼
▲|start_partial =
|greatest_eclipse = {{{greatest_eclipse}}}
|start_total = ▼
|end_central = {{{end_central}}}
▲|start_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
{{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.
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}}
<includeonly>{{basepage subpage|
[[Category:
[[Category:Solar
[[Category:Solar System templates]]
[[
}}</includeonly>▼
▲[[zh:Template:Infobox Solar eclipse]]
▲</includeonly>
|