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
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|}}}|World map with the time zone highlighted}}
|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===
|header4      = Current time
|data5        = {{time|{{{name|{{{initials|{{PAGENAMEBASE}}}}}}}}|dst=no|df={{{format|dmy}}}}}{{#ifeq:{{time|{{{name|{{{initials|{{PAGENAMEBASE}}}}}}}}|dst=yes}}|{{time|{{{name|{{{initials|{{PAGENAMEBASE}}}}}}}}|dst=no}}||<br>{{time|{{{name|{{{initials|{{PAGENAMEBASE}}}}}}}}|dst=yes|df={{{format|dmy}}}}}}}


<pre>
|header6      = {{#if:{{{UTC|}}}||{{#ifeq:{{{display observance|}}}|no||Observance of [[Daylight saving time|DST]]}}}}
{{Infobox time zone
|data7        = {{#if:{{{UTC|}}}||{{#ifeq:{{{display observance|}}}|no||{{#switch:{{{dst use|{{{daylight savings use|}}}}}}
|caption =                   (caption for the image)
  |none=DST is not observed in this time zone.
|dst use =                   (time zone uses DST, accepted values: all, none, some, parts, only; default is all)
  |only=This time zone is only used for DST. {{#if:{{{non dst initials|}}}|For the rest of the year, {{{non dst initials}}} is used.}}
|initials =                   (initials during standard time)
  |some|parts=DST is observed in {{{dst use|{{{daylight savings use|}}}}}} of this time zone.
|dst initials =               (DST timezone initials, keep blank if daylight saving isn't used)
  |#default|all=DST is observed throughout this time zone.}} }}
|offset =                     (offset from UTC during standard time)
}}
|dst offset =                 (offset from UTC during DST, keep blank if daylight saving isn't used)
}}
| rowclass8  = mergedtoprow
</pre>
| header8    = {{#if:{{{UTC|}}}|Central [[Meridian (geography)|meridian]]}}
| data9      = {{#if:{{{UTC|}}}|{{Infobox_time_zone/meridian-central}}}}


===All Parameters===
| rowclass10  = mergedtoprow
| header10    = {{#if:{{{UTC|}}}|[[Date-time group]]}}
| data11      = {{#if:{{{UTC|}}}|{{Infobox time zone UTC/utc-dtg|{{PAGENAMEBASE}}}}}}
}}<!--


<pre>
Tracking categories
{{Infobox time zone
-->{{#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>
|title =                     (title of the infobox; default is pagename)
{{documentation}}
|image =                      (a image for the infobox)
</noinclude>
|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>

Revision as of 15:58, 26 March 2020

Infobox time zone
World map with the time zone highlighted
UTC offset
UTCUTC±00:00
Current time
Template:Time
Observance of DST
DST is observed throughout this time zone.