Difference between revisions of "Template:Infobox time zone"

From blackwiki
Jump to navigation Jump to search
imported>Soumya-8974
(add | bodyclass = geography vcard | bodystyle = width:23em; three colors as in standard navboxes: ccf, ddf, e6e6ff; adjust indentation;)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| above          = {{{title|{{{name|{{PAGENAMEBASE}} }}} }}}
+
| bodyclass      = geography vcard
| subheader      = {{{dst_title|{{{dst_name|}}} }}}
+
| bodystyle      = width:23em
|   image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|Standard World Time Zones.png}}}|size={{{imagesize|300px}}}|alt={{{alt|}}} }}
+
| above          = {{{title|{{{name|{{PAGENAMEBASE}}}}}}}}
| caption        = {{{caption|}}}
+
| subheaderstyle = background-color:#ccf; font-weight:bold;
| headerstyle    = background:#ccf;
+
| subheader      = [[time zone]]
| labelstyle   = background:#ddf;
+
 
| header1 = {{#if:{{{offset|}}}{{{dst_offset|}}}|Offsets}}
+
| image         = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}}|{{{image}}}|{{Infobox time zone/image|{{PAGENAMEBASE}}}}}}|size={{{imagesize|300px}}}|alt={{{alt|}}}}}
| label2  = Normal
+
| caption        = {{#if:{{{image|}}}|{{{caption|}}}|World map with the time zone highlighted}}
|   data2  = {{#if:{{{offset|}}}|[[UTC{{{offset|}}}]] }}
+
| headerstyle    = background:#ddf;
| label3  = DST
+
| labelstyle     = background:#e6e6ff;
|   data3  = {{#if:{{{dst_offset|}}}|[[UTC{{{dst_offset|}}}]] }}
+
 
| header4  = Current time
+
 
|   data5  = {{time|{{{acronym|{{PAGENAME}} }}}|df={{{date_format|}}} }}
+
| header1       = UTC offset
| header6 = {{#if:{{{dst_use|}}}|Observance of DST}}
+
| label2        = {{{initials|UTC}}}
|   data7 = {{#switch:{{{dst_use|}}}
+
| data2          = {{#if:{{{offset|}}}|[[UTC{{{offset}}}]]|{{#if:{{{UTC|}}}|{{PAGENAMEBASE}}|[[UTC±00:00]]}}}}
 +
| label3        = {{{dst initials|}}}
 +
| data3          = {{#if:{{{dst offset|}}}|[[UTC{{{dst offset|}}}]]}}
 +
 
 +
| 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}}}}}}}
 +
 
 +
| header6       = {{#if:{{{UTC|}}}||{{#ifeq:{{{display observance|}}}|no||Observance of [[Daylight saving time|DST]]}}}}
 +
| data7         = {{#if:{{{UTC|}}}||{{#ifeq:{{{display observance|}}}|no||{{#switch:{{{dst use|{{{daylight savings use|}}}}}}
 
   |none=DST is not observed in this time zone.
 
   |none=DST is not observed in this time zone.
   |only=This time zone is only used for DST. {{#if:{{{non_dst_initials|}}}|For the rest of the year, {{{non_dst_initials}}} is used.}}
+
   |only=This time zone is only used for DST. {{#if:{{{non dst initials|}}}|For the rest of the year, {{{non dst initials}}} is used.}}
   |some|parts=DST is observed in {{{dst_use|}}} of this time zone.
+
   |some|parts=DST is observed in {{{dst use|{{{daylight savings use|}}}}}} of this time zone.
   |all=DST is observed throughout this time zone.}}
+
   |#default|all=DST is observed throughout this time zone.}} }}
| header8 = {{#if:{{{meridian|{{Infobox time zone/meridian-central|UTC{{{offset|}}} }} }}}|Meridians}}
+
}}
|   data9 = {{{meridian|{{Infobox time zone/meridian-central|{{#if:{{{offset|}}}|UTC{{{offset|}}}|{{PAGENAME}} }} }} }}}
+
}}
+
| rowclass8      = mergedtoprow
{{#ifeq:{{#invoke:String|find|{{time|{{{name|{{{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>
+
| header8       = {{#if:{{{UTC|}}}|Central [[Meridian (geography)|meridian]]}}
 +
| data9         = {{#if:{{{UTC|}}}|{{Infobox time zone/meridian-central}}}}
 +
 
 +
| rowclass10    = mergedtoprow
 +
| header10      = {{#if:{{{UTC|}}}|[[Date-time group]]}}
 +
| data11        = {{#if:{{{UTC|}}}|{{Infobox time zone/utc-dtg|{{PAGENAMEBASE}}}}}}
 +
}}<!--
 +
 
 +
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>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 01:03, 13 September 2020

Template:PAGENAMEBASE
time zone
World Time Zones Map.png
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.

[[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