Template:Infobox solar eclipse/doc: Difference between revisions

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--->
{{Infobox Lua|Module:Solar eclipse}}
{{intricate template}}
 
[[zh:Template:{{Infobox Solarsolar eclipse]]
=== Usage ===
|date = {{{date}}}
<pre style="font-size:95%; overflow:auto;">
|image = {{{image}}}
{{Infobox Solar eclipse
|datecaption = {{{caption}}}
|imagemap = {{{map}}}
|caption map_caption = {{{map_caption}}}
|map type_ref = {{{type_ref}}}
|nature = {{{nature}}}
|map_caption =
|type_refgamma = {{{gamma}}}
|naturemagnitude = {{{magnitude}}}
|gammasaros = {{{saros}}}
|saros_sequence = {{{saros_sequence}}}
|magnitude =
|saros saros_total = {{{saros_total}}}
|max_eclipse_ref = {{{max_eclipse_ref}}}
|saros_sequence =
|duration = {{{duration}}}
|saros_total =
|___location = {{{___location}}}
|max_eclipse_ref =
|durationcoords = {{{coords}}}
|___locationmax_width = {{{max_width}}}
|coordstimes_ref = {{{times_ref}}}
|start_partial = {{{start_partial}}}
|max_width =
|times_refstart_total = {{{start_total}}}
|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
<presyntaxhighlight 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 Usageetc.. ===
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>
</pre>
 
''nature'' should be "Total", "Annular", "Hybrid" or "Partial" (without speechmarks).
 
== Microformat ==
{{UF-hcal-geo}}
 
<includeonly>{{basepage subpage|
[[Category:SolarAstronomy Systeminfobox templates|{{PAGENAME}}Solar Eclipse]]
[[Category:Solar eclipses|τ{{PAGENAME}}eclipse templates]]
[[Category:Solar System templates]]
 
[[de:VorlageCategory:Templates based on the Infobox SonnenfinsternisLua module]]
}}</includeonly>
[[fr:Modèle:Infobox éclipse solaire]]
[[ru:Шаблон:Солнечное затмение]]
[[zh:Template:Infobox Solar eclipse]]
</includeonly>