Difference between revisions of "Template:Infobox time zone"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
imported>Soumya-8974
(Merging.)
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
|above       = {{{title|{{{name|{{PAGENAMEBASE}}}}}}}}
+
| above         = {{{title|{{{name|{{PAGENAMEBASE}} }}} }}}
|image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|Standard World Time Zones.png}}}|size={{{imagesize|300px}}}|alt={{{alt|}}}}}
+
| subheader      = {{{dst_title|{{{dst_name|}}} }}}
|caption     = {{{caption|}}}
+
image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|Standard World Time Zones.png}}}|size={{{imagesize|300px}}}|alt={{{alt|}}} }}
|headerstyle = background:#ccf;
+
| caption       = {{{caption|}}}
|labelstyle   = background:#ddf;
+
| headerstyle   = background:#ccf;
|header1     = UTC offset
+
| labelstyle   = background:#ddf;
|label2      = {{{initials|UTC}}}
+
| header1 = {{#if:{{{offset|}}}|Offsets}}
|data2        = [[UTC{{{offset|±00:00}}}]]
+
| label1  = Normal
|label3      = {{{dst initials|}}}
+
|   data1  = {{#if:{{{offset|}}}|[[UTC{{{offset|}}}]]}}
|data3        = {{#ifeq:{{{dst offset|}}}|||[[UTC{{{dst offset|}}}]]}}
+
| label2  = DST
|header4      = {{#ifeq:{{#invoke:String|find|{{time|{{{name|{{{initials|UTC}}}}}}|dst={{#ifeq:{{{dst use|all}}}|none|no|yes}}|df={{{format|dmy}}}}}|unknown timezone}}|0|Current time}}
+
| label2  = {{#if:{{{dst_offset|}}}|[[UTC{{{dst_offset|}}}]]}}
|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}}}}}}}
+
| header3  = Current time
|header6      = {{#ifeq:{{{display observance|}}}|no||Observance of DST}}
+
|   data4  = {{time|{{{title|{{{name|{{PAGENAMEBASE}} }}} }}}|df={{{date_format|}}} }}
|data7        = {{#ifeq:{{{display observance|}}}|no||{{#switch:{{{dst use|{{{daylight savings use|}}}}}}
+
| header5  = {{#if:{{{dst_use|}}}|Observance of DST}}
 +
|   data6  = {{#switch:{{{dst_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|{{{daylight savings use|}}}}}} of this time zone.
+
   |some|parts=DST is observed in {{{dst_use|}}} of this time zone.
   |#default|all=DST is observed throughout this time zone.}} }}
+
   |all=DST is observed throughout this time zone.}}
 +
| header7  = Meridians
 +
|  label8  = Central
 +
|  data8  = {{{meridian|{{Infobox time zone/meridian-central|UTC{{{offset|}}} }} }}}
 +
|  label9  = Western border (nautical)
 +
|  data9  = {{{western_border|{{Infobox time zone UTC/utc-meridian-west|UTC{{{offset|}}} }} }}}
 +
| label10  = Eastern border (nautical)
 +
|  data10  = {{{eastern_border|{{Infobox time zone UTC/utc-meridian-east|UTC{{{offset|}}} }} }}}
 +
| label11  = [[Date-time group]] (DTG)
 +
|  data11  = {{{dtg|{{Infobox time zone/dtg|UTC{{{offset|}}} }} }}}
 
}}
 
}}
 
{{#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]]</includeonly><!-- KEEP HERE FOR PAGE TRACKING REASONS (THIS IS MEANT TO BE HERE) --><noinclude>
 
{{#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]]</includeonly><!-- KEEP HERE FOR PAGE TRACKING REASONS (THIS IS MEANT TO BE HERE) --><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 07:49, 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