Difference between revisions of "Template:Infobox time zone/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
imported>Primefac
(overhaul)
Line 8: Line 8:
 
|header1      = UTC offset
 
|header1      = UTC offset
 
|label2      = {{{initials|UTC}}}
 
|label2      = {{{initials|UTC}}}
|data2        = {{#if:{{{offset|}}}|[[UTC{{{offset|±00:00}}}]]|{{sandbox other|[[UTC±00:00]]|[[{{PAGENAMEBASE}}]]}}}}
+
|data2        = {{#if:{{{offset|}}}|[[UTC{{{offset}}}]]|{{#if:{{{UTC|}}}|[[{{PAGENAMEBASE}}]]|[[UTC±00:00]]}}
 
|label3      = {{{dst initials|}}}
 
|label3      = {{{dst initials|}}}
 
|data3        = {{#if:{{{dst offset|}}}|[[UTC{{{dst offset|}}}]]}}
 
|data3        = {{#if:{{{dst offset|}}}|[[UTC{{{dst offset|}}}]]}}
Line 15: Line 15:
 
|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}}}}}}}
 
|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      = {{#ifeq:{{Str left|{{PAGENAMEBASE}}|3}}|UTC||{{#ifeq:{{{display observance|}}}|no||Observance of [[Daylight saving time|DST]]}}}}
+
|header6      = {{#if:{{{UTC|}}}||{{#ifeq:{{{display observance|}}}|no||Observance of [[Daylight saving time|DST]]}}}}
|data7        = {{#ifeq:{{Str left|{{PAGENAMEBASE}}|3}}|UTC||{{#ifeq:{{{display observance|}}}|no||{{#switch:{{{dst use|{{{daylight savings use|}}}}}}
+
|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.
 
   |only=This time zone is only used for DST.
Line 24: Line 24:
 
   
 
   
 
| rowclass8  = mergedtoprow
 
| rowclass8  = mergedtoprow
| header8    = {{#ifeq:{{Str left|{{PAGENAMEBASE}}|3}}|UTC|Centeral [[Meridian (geography)|meridian]]}}
+
| header8    = {{#if:{{{UTC|}}}|Centeral [[Meridian (geography)|meridian]]}}
| data9      = {{#ifeq:{{Str left|{{PAGENAMEBASE}}|3}}|UTC|{{Infobox_time_zone/meridian-central}}}}
+
| data9      = {{#if:{{{UTC|}}}|{{Infobox_time_zone/meridian-central}}}}
  
 
| rowclass10  = mergedtoprow
 
| rowclass10  = mergedtoprow
| header10    = {{#ifeq:{{Str left|{{PAGENAMEBASE}}|3}}|UTC|[[Date-time group]]}}
+
| header10    = {{#if:{{{UTC|}}}|[[Date-time group]]}}
| data11      = {{#ifeq:{{Str left|{{PAGENAMEBASE}}|3}}|UTC|{{Infobox time zone UTC/utc-dtg|{{PAGENAMEBASE}}}}}}
+
| data11      = {{#if:{{{UTC|}}}|{{Infobox time zone UTC/utc-dtg|{{PAGENAMEBASE}}}}}}
 
}}<!--
 
}}<!--
  

Revision as of 23:36, 19 October 2019

{{Infobox |above = Template:PAGENAMEBASE |image = 300px |caption = |headerstyle = background:#ccf; |labelstyle = background:#ddf;

|header1 = UTC offset |label2 = UTC |data2 = UTC±00:00

50px 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