Template:Time zone/zone.tab cols wiki6
| [[ISO 3166-1:Time zone {{{1}}} is not in Template:Time zone/country code|Time zone {{{1}}} is not in Template:Time zone/country code]] | Time zone {{{1}}} is not in Template:Time zone/coordinates | {{{1}}}
|
Time zone {{{1}}} is not in {{Tz/comments}}. | [[UTCTime zone {{{1}}} is not in {{Tz/utc offset}}.|Time zone {{{1}}} is not in {{Tz/utc offset}}.]] | [[UTCTime zone {{{1}}} is not in {{Tz/utc dst offset}}.|Time zone {{{1}}} is not in {{Tz/utc dst offset}}.]] |
This template maps a time zone to 6 cells in a table row: country code (linked), coordinates, timezone name, comments, standard UTC offset (linked), and DST UTC offset (linked), from tz database.
Relative to the simplified row templates, this template adds:
- an optional parameter
|same dst=, to control the behaviour of the DST UTC offset column; - support to sortable tables, by including
data-sort-valuefor both UTC offset columns.
This row template cannot be used for the full table in List of tz database time zones, because of performance limitations in processing such a long table.
Usage
[edit source]{{Time zone/zone.tab cols wiki6}} has one required positional parameter for timezone name from tz database. For example:
{| class="wikitable sortable"
! {{Time zone/database header}}
|-
| {{Time zone/zone.tab cols wiki6|America/New_York}}
|-
| {{Time zone/zone.tab cols wiki6|Europe/Berlin}}
|-
| {{Time zone/zone.tab cols wiki6|Asia/Hong_Kong}}
|-
| {{Time zone/zone.tab cols wiki6|Australia/Sydney}}
|-
| {{Time zone/zone.tab cols wiki6|Antarctica/South_Pole}}
|}
| c.c. | Coordinates | Timezone name | Comments | UTC offset (Std.) | UTC offset (DST) |
|---|---|---|---|---|---|
| US | +404251 |
America
|
Eastern (most areas) | −05:00 | −04:00 |
| DE | +5230 |
Europe
|
most of Germany | +01:00 | +02:00 |
| HK | +2217 |
Asia
|
+08:00 | +08:00 | |
| AU | −3352 |
Australia
|
New South Wales (most areas) | +10:00 | +11:00 |
| AQ | Antarctica
|
+12:00 | +13:00 |
DST column options
[edit source]When the standard time and DST UTC offsets are equal, set the parameter |same dst= for one of the following behaviours:
Show DST column separately (default)
[edit source]The default behaviour and |same dst=show show both columns separately and plain:
{| class="wikitable sortable"
! {{Time zone/database header}}
! Parameter
|-
| {{Time zone/zone.tab cols wiki6|America/New_York|same dst=show}}
| {{para|same dst|show}}
|-
| {{Time zone/zone.tab cols wiki6|Asia/Hong_Kong|same dst=show}}
| {{para|same dst|show}}
|}
| c.c. | Coordinates | Timezone name | Comments | UTC offset (Std.) | UTC offset (DST) | Parameter |
|---|---|---|---|---|---|---|
| US | +404251 |
America
|
Eastern (most areas) | −05:00 | −04:00 | |same dst=show
|
| HK | +2217 |
Asia
|
+08:00 | +08:00 | |same dst=show
|
Merge DST column with standard time
[edit source]The option |same dst=show conditionally merges the standard time and DST columns. For multiple tz timezones that don't observe DST, the table header may be merged by {{Time zone/database header|dst=no}}:
{| class="wikitable sortable"
! {{Time zone/database header|dst=no}}
! Parameter
|-
| {{Time zone/zone.tab cols wiki6|America/New_York|same dst=merge}}
| {{para|same dst|merge}}
|-
| {{Time zone/zone.tab cols wiki6|Asia/Hong_Kong|same dst=merge}}
| {{para|same dst|merge}}
|}
| c.c. | Coordinates | Timezone name | Comments | UTC offset | Parameter | |
|---|---|---|---|---|---|---|
| US | +404251 |
America
|
Eastern (most areas) | −05:00 | −04:00 | |same dst=merge
|
| HK | +2217 |
Asia
|
+08:00 | |same dst=merge
| ||
Show DST column as n/a
[edit source]The option |same dst=n/a conditionally shows the DST column as {{n/a}}, and still allows sorting using the same UTC offset:
{| class="wikitable sortable"
! {{Time zone/database header}}
! Parameter
|-
| {{Time zone/zone.tab cols wiki6|America/New_York|same dst=n/a}}
| {{para|same dst|n/a}}
|-
| {{Time zone/zone.tab cols wiki6|Asia/Hong_Kong|same dst=n/a}}
| {{para|same dst|n/a}}
|}
| c.c. | Coordinates | Timezone name | Comments | UTC offset (Std.) | UTC offset (DST) | Parameter |
|---|---|---|---|---|---|---|
| US | +404251 |
America
|
Eastern (most areas) | −05:00 | −04:00 | |same dst=n/a
|
| HK | +2217 |
Asia
|
+08:00 | — | |same dst=n/a
|
Show DST column as yes or no
[edit source]The option |same dst=yes/no conditionally shows the DST column as {{yes}} or {{no}} (with respective background colours), and still allows sorting using the same UTC offset:
{| class="wikitable sortable"
! {{Time zone/database header}}
! Parameter
|-
| {{Time zone/zone.tab cols wiki6|America/New_York|same dst=yes/no}}
| {{para|same dst|yes/no}}
|-
| {{Time zone/zone.tab cols wiki6|Asia/Hong_Kong|same dst=yes/no}}
| {{para|same dst|yes/no}}
|}
| c.c. | Coordinates | Timezone name | Comments | UTC offset (Std.) | UTC offset (DST) | Parameter |
|---|---|---|---|---|---|---|
| US | +404251 |
America
|
Eastern (most areas) | −05:00 | −04:00 | |same dst=yes/no
|
| HK | +2217 |
Asia
|
+08:00 | No | |same dst=yes/no
|
TemplateData
[edit source]TemplateData for Time zone/zone.tab cols wiki6
Maps a time zone to 6 cells in a table row: country code (linked), coordinates, timezone name, comments, standard UTC offset (linked), and DST UTC offset (linked), from tz database.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Timezone name | 1 | Time zone name as defined in the tz database
| String | required |
| DST column options | same dst | Controls the DST UTC offset column display, when both standard time and DST have the same UTC offset
| String | optional |
See also
[edit source]tz database
[edit source]Sub templates store data from the tz database and some related information. These examples are accurate as of version 2025c of the database.
| Code example | Produces | Description |
|---|---|---|
{{Time zone/version|IncludeLink}}
|
[https://data.iana.org/time-zones/releases/tzdata2025c.tar.gz 2025c]
|
Produces the version number of the tz database. Update this template when updating those below with data from a new release. Add a parameter (value doesn't matter) to include a link to the IANA FTP site. |
{{Time zone/country code|Asia/Urumqi}}
|
CN | Maps TZ to country code from zone.tab |
{{Time zone/iso 3166-1 link|Asia/Urumqi}}
|
[[ISO 3166-1:CN|CN]]
|
Maps TZ to linked country code from zone.tab |
{{Time zone/coordinates|Asia/Urumqi}}
|
+4348+08735 | Maps TZ to coordinates in original format from zone.tab |
{{Time zone/comments|Asia/Urumqi}}
|
Xinjiang Time | Maps TZ to comments from zone.tab |
{{Time zone/rulefile|Asia/Urumqi}}
|
asia | Maps TZ to linked continent file that defines the zone (or link) and DST rules. |
{{Time zone/utc offset|Europe/Amsterdam}}
|
+01:00 | Maps TZ to normal (non-DST) UTC offset |
{{Time zone/utc offset link|Europe/Amsterdam}}
|
[[UTC+01:00|+01:00]]
|
Maps TZ to linked normal (non-DST) UTC offset |
{{Time zone/utc zone|Europe/Amsterdam}}
|
UTC+01:00 | Maps TZ to normal (non-DST) UTC offset with prefix |
{{Time zone/utc dst offset|Europe/Amsterdam}}
|
+02:00 | Maps TZ to DST UTC offset |
{{Time zone/utc dst offset link|Europe/Amsterdam}}
|
[[UTC+02:00|+02:00]]
|
Maps TZ to linked DST UTC offset |
{{Time zone/zone.tab cols wikitable|Antarctica/South_Pole}}
|
| [[ISO 3166-1:AQ|AQ]] || || [[Antarctica/South_Pole]] ||
|
Maps TZ to 4 elements as a wikitable row – country code, coordinates, zone name, and comments |
{{Time zone/zone.tab cols linked|Antarctica/South_Pole}}
|
| [[ISO 3166-1:AQ|AQ]]
|
| Antarctica/South_Pole
|
| [[UTC+12:00|+12:00]]
| [[UTC+13:00|+13:00]]
|
Similar to {{Time zone/zone.tab cols wikitable}}, but adds two more lines to the output, containing the linked normal (non-DST) and DST UTC offsets |
{{Time zone/zone.tab cols unlinked|Antarctica/South_Pole}}
|
| AQ
|
| Antarctica/South_Pole
|
| +12:00
| +13:00
|
Same as {{Time zone/zone.tab cols unlinked}}, but with no links |
{{Time zone/zone.tab cols wiki6|Antarctica/South_Pole}}
|
| [[ISO 3166-1:AQ|AQ]]
|
| <div style="text-indent: -1.6em; margin-left: 1.6em;">Antarctica<wbr />/South_Pole</div>
|
| data-sort-value="43200" | [[UTC+12:00|+12:00]]
| data-sort-value="46800" | [[UTC+13:00|+13:00]]
|
A possibly slower version of {{Time zone/zone.tab cols linked}}.
Note: neither {{Time zone/zone.tab cols wiki6}} nor {{Time zone/zone.tab cols linked}} can currently be used for the full table in List of tz database time zones because of performance limitations in processing such a long table. They can, however, be used for a small number of rows in individual area articles. |