साँचा:Tz
{{{1}}}
{{tz}} can be used to quickly and consistently link to an article on a timezone, while automatically displaying the deviation from UTC.
It also contains sub-templates that contain the data for columns in the tz database.
Usage
[संपादित करें]{{subst:tz|timezone}}
Replace timezone
with any standard time zone code.
If the time zone is omitted, the template defaults to displaying UTC.
Exceptions: Sometimes, two different time zones have the same abbreviation. As we cannot change them, a little trick must be used for lesser-used ones. Instead of using the template above, you must use the following template:
{{subst:tz|timezone continent}}
Replace timezone
with any standard time zone code.
Replace continent
with any of the following:
North America: NA
South America: SA
Antarctica: AN
Africa: AF
Europe: EU
Asia: AS
Australia: AU
Examples:
- Irish Summer Time : {{subst:tz|IST EU}} gives IST (UTC+01)
- भारतीय मानक समय : {{subst:tz|IST}} gives IST (UTC+05:30)
Ireland being less inhabited than India, भारतीय मानक समय will be used more often than Irish Summer Time, and is therefore the default if no continent is specified.
See more examples below.
tz database
[संपादित करें]Sub templates store data from the tz database and some related information. These examples are accurate as of version साँचा:Tz/version of the database.
Template | Description | Example | Produces |
---|---|---|---|
{{Tz/version}} | 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. | {{Tz/version|IncludeLink}}
|
[ftp://ftp.iana.org/tz/releases/tzdata2012c.tar.gz 2012c] |
{{Tz/country code}} | Maps TZ to country code from zone.tab | {{Tz/country code|Asia/Urumqi}}
|
CN |
{{Tz/iso 3166-1 link}} | Maps TZ to linked country code from zone.tab | {{Tz/iso 3166-1 link|Asia/Urumqi}}
|
[[ISO 3166-1:CN|CN]] |
{{Tz/coordinates}} | Maps TZ to coordinates in original format from zone.tab | {{Tz/coordinates|Asia/Urumqi}}
|
+4348+08735 |
{{Tz/coord}} | Maps TZ to different coordinate format used in {{Infobox IANA time zone}} | {{Tz/coordinates|Asia/Urumqi}}
|
43/48/N/087/35/E |
{{Tz/comments}} | Maps TZ to comments from zone.tab | {{Tz/coordinates|Asia/Urumqi}}
|
Covering historic [[Sinkiang-Tibet]] time zone |
{{Tz/rulefile}} | Maps TZ to linked continent file that defines the zone (or link) and DST rules, used by {{Infobox IANA time zone}} . Not currently accurate.
|
||
{{Tz/utc offset}} | Maps TZ to normal (non-DST) UTC offset | {{Tz/utc offset|Europe/Amsterdam}}
|
+01:00 |
{{Tz/utc offset link}} | Maps TZ to linked normal (non-DST) UTC offset | {{Tz/utc offset link|Europe/Amsterdam}}
|
[[UTC+01:00|+01:00]] |
{{Tz/utc zone}} | Maps TZ to normal (non-DST) UTC offset with prefix | {{Tz/utc zone|Europe/Amsterdam}}
|
UTC+01:00 |
{{Tz/utc zone link}} | Maps TZ to linked normal (non-DST) UTC offset with prefix | {{Tz/utc zone link|Europe/Amsterdam}}
|
[[UTC+01:00]] |
{{Tz/utc dst offset}} | Maps TZ to DST UTC offset | {{Tz/utc dst offset|Europe/Amsterdam}}
|
+02:00 |
{{Tz/utc dst offset link}} | Maps TZ to linked DST UTC offset | {{Tz/utc dst offset link|Europe/Amsterdam}}
|
[[UTC+02:00|+02:00]] |
{{Tz/zone.tab cols wikitable}} | Maps TZ to 4 elements as a wikitable row – country code, coordinates, zone name, and comments | {{Tz/zone.tab cols wikitable|Antarctica/South_Pole}}
|
| [[ISO 3166-1:AQ|AQ]] | -9000+00000 | [[Antarctica/South_Pole]] | Amundsen-Scott Station, South Pole |
{{Tz/zone.tab cols linked}} | Similar to {{Tz/zone.tab cols wikitable}}, but adds two more lines to the output, containing the linked normal (non-DST) and DST UTC offsets | {{Tz/zone.tab cols linked|Antarctica/South_Pole}}
|
| [[ISO 3166-1:AQ|AQ]] | -9000+00000 | [[Antarctica/South_Pole]] | Amundsen-Scott Station, South Pole | [[UTC+12:00|+12:00]] | [[UTC+13:00|+13:00]] |
{{Tz/zone.tab cols wiki6}} | A possibly slower version of {{Tz/zone.tab cols linked}}. Note: neither {{Tz/zone.tab cols wiki6}} nor {{Tz/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. | ||
{{Tz/infobox}} | Displays an infobox on the right side of pages for the tz zones, if the page name matches a zone name. For an example see Asia/Omsk. | ||
{{Tz/zoneinfo}} | Displays the lead and a table containing the tz database data. For example, see Asia/Thimphu. |
UTC
[संपादित करें]- Template:Tz/utc-infobox
- Template:Tz/utc-meridian-central
- Template:Tz/utc-meridian-west
- Template:Tz/utc-meridian-east
- Template:Tz/utc-hue4map-color
- Template:Tz/utc-dtg
Examples
[संपादित करें]The list may not be exhaustive.
इन्हें भी देखें
[संपादित करें]References
[संपादित करें]- (en) Worldtimezone
ऊपर दिए गए निर्देश साँचा:Tz/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |