Template:Infobox time zone: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
>Tin the free
(Created page with "{{documentation subpage}} {{Update|documentation|date=July 2019}} {{Lua|Module:Infobox|Module:InfoboxImage|Module:String|Module:Check for unknown parameters}} ==Usage== ===R...")
 
>Tin the free
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Infobox
{{Update|documentation|date=July 2019}}
|above        = {{{title|{{{name|{{PAGENAMEBASE}}}}}}}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:String|Module:Check for unknown parameters}}
|image        = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{Infobox time zone/image|{{PAGENAMEBASE}}}}}}|size={{{imagesize|300px}}}|alt={{{alt|}}}}}
|caption      = {{#if:{{{image|}}}|{{{caption|}}}|South Pacifica map with the time zones}}
|headerstyle  = background:#ccf;
|labelstyle  = background:#ddf;


==Usage==
|header1      = UTC offset
|label2      = {{{initials|UTC}}}
|data2        = {{#if:{{{offset|}}}|[[UTC{{{offset}}}]]|{{#if:{{{UTC|}}}|{{PAGENAMEBASE}}|[[UTC±00:00]]}}}}
|label3      = {{{dst initials|}}}
|data3        = {{#if:{{{dst offset|}}}|[[UTC{{{dst offset|}}}]]}}


===Recommended Usage===
| rowclass8  = mergedtoprow
| header8    = {{#if:{{{UTC|}}}|Central [[Meridian (geography)|meridian]]}}
| data9      = {{#if:{{{UTC|}}}|{{Infobox_time_zone/meridian-central}}}}


<pre>
| rowclass10  = mergedtoprow
{{Infobox time zone
| header10    = {{#if:{{{UTC|}}}|[[Date-time group]]}}
|caption =                   (caption for the image)
| data11      = {{#if:{{{UTC|}}}|{{Infobox time zone UTC/utc-dtg|{{PAGENAMEBASE}}}}}}
|dst use =                   (time zone uses DST, accepted values: all, none, some, parts, only; default is all)
}}<!--
|initials =                  (initials during standard time)
|dst initials =               (DST timezone initials, keep blank if daylight saving isn't used)
|offset =                    (offset from UTC during standard time)
|dst offset =                (offset from UTC during DST, keep blank if daylight saving isn't used)
}}
</pre>


===All Parameters===
Tracking categories
 
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox time zone with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox time zone]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | caption | daylight savings use | display observance | dst initials | dst offset | dst use | format | image | imagesize | initials | name | non dst initials | offset | title | UTC}}{{#ifeq:{{#invoke:String|find|{{{name|{{{initials|{{PAGENAMEBASE}}}}}}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}|unknown timezone|0||[[Category:Infobox time zone with unknown time zone]]}}<noinclude>
<pre>
{{documentation}}
{{Infobox time zone
</noinclude>
|title =                     (title of the infobox; default is pagename)
|image =                      (a image for the infobox)
|caption =                    (caption for the image)
|dst use =                    (time zone uses DST, accepted values: all, none, some, parts, only; default is all)
|initials =                  (initials during standard time)
|name =                      (full name of the timezone, to be used when initials are shared with another zone causing the time to show incorrectly)
|dst initials =              (DST timezone initials, keep blank if daylight saving isn't used)
|non dst initials =          (initials of standard, non-DST timezone that is used when a DST-only timezone is not active; only use on DST only timezones)
|offset =                    (offset from UTC during standard time)
|dst offset =                 (offset from UTC during DST, keep blank if daylight saving isn't used)
|display observance =        (display the DST observance section; default is to display; single accepted value: no)
}}
</pre>
 
== Tracking categories ==
* {{clc|Pages using infobox time zone with unknown parameters}}
* {{clc|Infobox time zone with unknown time zone}}
 
<includeonly>{{sandbox other||
[[Category:Time zones templates|!]]
[[Category:Infobox templates]]
[[Category:Templates that add a tracking category]]
}}</includeonly>

Latest revision as of 16:19, 26 March 2020

Infobox time zone
South Pacifica map with the time zones
UTC offset
UTCUTC±00:00