Difference between revisions of "Template:Infobox time zone"
Jump to navigation
Jump to search
imported>Yodin (restoring {{{non dst initials}}} (e.g. British Summer Time), and {{{daylight savings use}}} as an alias of {{{dst use}}} (the switch statement checks for both)) |
imported>Primefac (add tracking cat for params) |
||
| Line 33: | Line 33: | ||
Tracking categories | Tracking categories | ||
| − | -->{{#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> | + | -->{{#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> | ||
Revision as of 11:37, 20 October 2019
| Template:PAGENAMEBASE | |
|---|---|
| 300px World map with the time zone highlighted | |
| UTC offset | |
| UTC | UTC±00:00 |
| Current time | |
| Template:Time | |
| Observance of DST | |
| DST is observed throughout this time zone. | |
[[Category:Infobox templates|Template:Remove first word]]
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| File:Lua-Logo.svg | 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. |