Template:User time zone/doc

From English Wikipedia @ Freddythechick

This template is meant to replace all other time zone related templates. Please see the usage to create your template.

Usage

The first variable of the template is required and can be UTC with or without an offset, GMT, or your time zone's abbreviation. The second variable is the image you wish to use. There are four images to from which to choose, or you can leave it blank, and your time zone's abbreviation will be displayed where the image would be. It is recommended that you use an image with a time zone with an offset. The third variable is for the link for the timezone abbreviation to point to - by default, this is the abbreviation itself, which is usually a disambiguation. The old syntax using time zone{{!}}time zone abbreviation in the first argument is still currently supported, but requires that an image be used.

Samples

Template output Stand alone code Babel box code
UTCThis user's time zone is UTC.
<syntaxhighlight lang="wikitext">
UTCThis user's time zone is UTC.
</syntaxhighlight>
time zone|UTC|Coordinated Universal Time|</syntaxhighlight>
GMTThis user's time zone is GMT.
<syntaxhighlight lang="wikitext">
GMTThis user's time zone is GMT.
</syntaxhighlight>
time zone|GMT Greenwich Mean Time</syntaxhighlight>
ESTThis user's time zone is EST.
<syntaxhighlight lang="wikitext">
ESTThis user's time zone is EST.
</syntaxhighlight>
time zone|EST </syntaxhighlight>
UTC−05This user's time zone is UTC−05.
<syntaxhighlight lang="wikitext">
UTC−05This user's time zone is UTC−05.
</syntaxhighlight>
time zone|UTC−05|</syntaxhighlight>
UTC+05:30This user's time zone is UTC+05:30.
<syntaxhighlight lang="wikitext">
UTC+5:30This user's time zone is UTC+5:30.
</syntaxhighlight>
time zone|UTC+05:30|</syntaxhighlight>
UTC+00:20This user's time zone is UTC+00:20.
<syntaxhighlight lang="wikitext">
UTC+00:20This user's time zone is UTC+00:20.
</syntaxhighlight>
time zone|UTC+00:20|</syntaxhighlight>
This user's time zone is UTC.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC.
</syntaxhighlight>
time zone|UTC|watch|Coordinated Universal Time|</syntaxhighlight>
This user's time zone is GMT.
<syntaxhighlight lang="wikitext">
This user's time zone is GMT.
</syntaxhighlight>
time zone|GMT|watch|Greenwich Mean Time|</syntaxhighlight>
This user's time zone is EST.
<syntaxhighlight lang="wikitext">
This user's time zone is EST.
</syntaxhighlight>
time zone|EST|watch|Eastern Time Zone|</syntaxhighlight>
PTThis user's time zone is UTC−08.
<syntaxhighlight lang="wikitext">
PTThis user's time zone is UTC−08.
</syntaxhighlight>
time zone|UTC−08 Pacific Time Zone|</syntaxhighlight>
This user's time zone is UTC−05.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC−05.
</syntaxhighlight>
time zone|UTC−05|watch|</syntaxhighlight>
This user's time zone is UTC+00:20.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC+00:20.
</syntaxhighlight>
time zone|UTC+00:20|watch|</syntaxhighlight>
This user's time zone is UTC.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC.
</syntaxhighlight>
time zone|UTC|clock|Coordinated Universal Time|</syntaxhighlight>
This user's time zone is GMT.
<syntaxhighlight lang="wikitext">
This user's time zone is GMT.
</syntaxhighlight>
time zone|GMT|clock|Greenwich Mean Time|</syntaxhighlight>
This user's time zone is EST.
<syntaxhighlight lang="wikitext">
This user's time zone is EST.
</syntaxhighlight>
time zone|EST|clock|Eastern Time Zone|</syntaxhighlight>
This user's time zone is UTC−05.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC−05.
</syntaxhighlight>
time zone|UTC−05|clock|</syntaxhighlight>
This user's time zone is UTC+00:20.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC+00:20.
</syntaxhighlight>
time zone|UTC+00:20|clock|</syntaxhighlight>
This user's time zone is UTC.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC.
</syntaxhighlight>
time zone|UTC Coordinated Universal Time|</syntaxhighlight>
This user's time zone is GMT.
<syntaxhighlight lang="wikitext">
This user's time zone is GMT.
</syntaxhighlight>
time zone|GMT|alarm|Greenwich Mean Time|</syntaxhighlight>
This user's time zone is EST.
<syntaxhighlight lang="wikitext">
This user's time zone is EST.
</syntaxhighlight>
time zone|EST|alarm|Eastern Time Zone|</syntaxhighlight>
This user's time zone is UTC−05.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC−05.
</syntaxhighlight>
time zone|UTC−05|alarm|</syntaxhighlight>
This user's time zone is UTC+00:20.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC+00:20.
</syntaxhighlight>
time zone|UTC+00:20|alarm|</syntaxhighlight>
This user's time zone is UTC.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC.
</syntaxhighlight>
time zone|UTC Coordinated Universal Time|</syntaxhighlight>
This user's time zone is GMT.
<syntaxhighlight lang="wikitext">
This user's time zone is GMT.
</syntaxhighlight>
time zone|GMT|world|Greenwich Mean Time|</syntaxhighlight>
This user's time zone is EST.
<syntaxhighlight lang="wikitext">
This user's time zone is EST.
</syntaxhighlight>
time zone|EST|world|Eastern Time Zone|</syntaxhighlight>
This user's time zone is UTC−05.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC−05.
</syntaxhighlight>
time zone|UTC−05|world|</syntaxhighlight>
This user's time zone is UTC+00:20.
<syntaxhighlight lang="wikitext">
This user's time zone is UTC+00:20.
</syntaxhighlight>
time zone|UTC+00:20|world|</syntaxhighlight>

Available UTC offsets:

See also