Difference between revisions of "Template:Infobox time zone"

From blackwiki
Jump to navigation Jump to search
imported>Yodin
(adding {{{name}}} parameter to allow for timezones with ambiguous initials (e.g. BST: see talk page))
imported>Yodin
(adding {{{dst use}}} = "only" option for DST only timezones, such as British Summer Time)
Line 13: Line 13:
 
|data5        = {{#ifeq:{{#invoke:String|find|{{time|{{{name|{{{initials|UTC}}}}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}|unknown timezone}}|0|{{time|{{{name|{{{initials|UTC}}}}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}}}
 
|data5        = {{#ifeq:{{#invoke:String|find|{{time|{{{name|{{{initials|UTC}}}}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}|unknown timezone}}|0|{{time|{{{name|{{{initials|UTC}}}}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}}}
 
|header6      = {{#ifeq:{{{display observance|}}}|no||Observance of DST}}
 
|header6      = {{#ifeq:{{{display observance|}}}|no||Observance of DST}}
|data7        = {{#ifeq:{{{display observance|}}}|no||DST is {{#switch:{{{dst use|{{{daylight savings use|}}}}}}
+
|data7        = {{#ifeq:{{{display observance|}}}|no||{{#switch:{{{dst use|{{{daylight savings use|}}}}}}
   |none=not observed in this time zone.
+
   |none=DST is not observed in this time zone.
   |some|parts=observed in {{{dst use|{{{daylight savings use|}}}}}} of this time zone.
+
  |only=This time zone is only used for DST.
   |#default|all=observed throughout this time zone.}} }}
+
   |some|parts=DST is observed in {{{dst use|{{{daylight savings use|}}}}}} of this time zone.
 +
   |#default|all=DST is observed throughout this time zone.}} }}
 
}}
 
}}
 
{{#ifeq:{{#invoke:String|find|{{time|{{{initials|UTC}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}|unknown timezone}}|0||[[Category:Infobox time zone with unknown time zone]]}}[[Category:Pages using infobox time zone]]<!-- KEEP HERE FOR PAGE TRACKING REASONS (THIS IS MEANT TO BE HERE) --><noinclude>
 
{{#ifeq:{{#invoke:String|find|{{time|{{{initials|UTC}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}|unknown timezone}}|0||[[Category:Infobox time zone with unknown time zone]]}}[[Category:Pages using infobox time zone]]<!-- KEEP HERE FOR PAGE TRACKING REASONS (THIS IS MEANT TO BE HERE) --><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 10:46, 23 September 2018

Template:PAGENAMEBASE
World Time Zones Map.png
UTC offset
UTCUTC±00:00
Current time
Template:Time
Observance of DST
DST is observed throughout this time zone.

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Update

Usage

Recommended Usage

{{Infobox time zone
|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)
|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)
}}

All Parameters

{{Infobox time zone
|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)
}}

Tracking categories