Difference between revisions of "Template:Infobox time zone"

From blackwiki
Jump to navigation Jump to search
imported>Soumya-8974
imported>Soumya-8974
Line 6: Line 6:
 
| headerstyle    = background:#ccf;
 
| headerstyle    = background:#ccf;
 
|  labelstyle    = background:#ddf;
 
|  labelstyle    = background:#ddf;
| header1  = {{#if:{{{offset|}}}|Offsets}}
+
| header1  = {{#if:{{{offset|}}}{{{dst_offset|}}}|Offsets}}
 
|  label1  = Normal
 
|  label1  = Normal
 
|  data1  = {{#if:{{{offset|}}}|[[UTC{{{offset|}}}]]}}
 
|  data1  = {{#if:{{{offset|}}}|[[UTC{{{offset|}}}]]}}
Line 12: Line 12:
 
|  label2  = {{#if:{{{dst_offset|}}}|[[UTC{{{dst_offset|}}}]]}}
 
|  label2  = {{#if:{{{dst_offset|}}}|[[UTC{{{dst_offset|}}}]]}}
 
| header3  = Current time
 
| header3  = Current time
|  data4  = {{time|{{{title|{{{name|{{PAGENAMEBASE}} }}} }}}|df={{{date_format|}}} }}
+
|  data4  = {{time|{{{acronym|}}}|df={{{date_format|}}} }}
 
| header5  = {{#if:{{{dst_use|}}}|Observance of DST}}
 
| header5  = {{#if:{{{dst_use|}}}|Observance of DST}}
 
|  data6  = {{#switch:{{{dst_use|}}}
 
|  data6  = {{#switch:{{{dst_use|}}}

Revision as of 08:17, 16 July 2019

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