Difference between revisions of "Template:Infobox time zone"
Jump to navigation
Jump to search
imported>Soumya-8974 |
imported>Soumya-8974 |
||
| Line 7: | Line 7: | ||
| labelstyle = background:#ddf; | | labelstyle = background:#ddf; | ||
| header1 = {{#if:{{{offset|}}}{{{dst_offset|}}}|Offsets}} | | header1 = {{#if:{{{offset|}}}{{{dst_offset|}}}|Offsets}} | ||
| − | | | + | | label2 = Normal |
| − | | | + | | data2 = {{#if:{{{offset|}}}|[[UTC{{{offset|}}}]] }} |
| − | | | + | | label3 = DST |
| − | | | + | | data3 = {{#if:{{{dst_offset|}}}|[[UTC{{{dst_offset|}}}]] }} |
| − | | | + | | header4 = Current time |
| − | | | + | | data5 = {{time|{{{acronym|}}}|df={{{date_format|}}} }} |
| − | | | + | | header6 = {{#if:{{{dst_use|}}}|Observance of DST}} |
| − | | | + | | data7 = {{#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|}}} of this time zone. | |some|parts=DST is observed in {{{dst_use|}}} of this time zone. | ||
|all=DST is observed throughout this time zone.}} | |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|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]]<!-- 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]]<!-- KEEP HERE FOR PAGE TRACKING REASONS (THIS IS MEANT TO BE HERE) --><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 08:22, 16 July 2019
| Template:PAGENAMEBASE | |
|---|---|
![]() | |
| Current time | |
| Template:Time |
[[Category:Infobox templates|Template:Remove first word]]
| 30px | This template uses Lua: |
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
- Category:Pages using infobox time zone with unknown parameters (0)
- Category:Infobox time zone with unknown time zone (0)
| The above documentation is transcluded from Template:Infobox time zone/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
