Template:User time zone

From Wikisource
Jump to: navigation, search
{{{1}}} This user's time zone is [[w:{{{1}}}|{{{1}}}]].

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

Usage[edit]

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 three 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[edit]

Template output Stand alone code Babel box code
UTC This user's time zone is UTC.
{{User time zone|UTC}}
|special-boxes={{User time zone|UTC}}
GMT This user's time zone is GMT.
{{User time zone|GMT}}
|special-boxes={{User time zone|GMT}}
EST This user's time zone is EST.
{{User time zone|EST}}
|special-boxes={{User time zone|EST}}
UTC-5 This user's time zone is UTC-5.
{{User time zone|UTC-5}}
|special-boxes={{User time zone|UTC-5}}
UTC+5:30 This user's time zone is UTC+5:30.
{{User time zone|UTC+5:30}}
|special-boxes={{User time zone|UTC+5:30}}
UTC+0:20 This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20}}
|special-boxes={{User time zone|UCT+0:20}}
Noia 64 apps xclock.png This user's time zone is UTC.
{{User time zone|UTC|watch}}
|special-boxes={{User time zone|UTC|watch}}
Noia 64 apps xclock.png This user's time zone is GMT.
{{User time zone|GMT|watch}}
|special-boxes={{User time zone|GMT|watch}}
Noia 64 apps xclock.png This user's time zone is EST.
{{User time zone|EST|watch}}
|special-boxes={{User time zone|EST|watch}}
Noia 64 apps xclock.png This user's time zone is UTC-5.
{{User time zone|UTC-5|watch}}
|special-boxes={{User time zone|UTC-5|watch}}
Noia 64 apps xclock.png This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20|watch}}
|special-boxes={{User time zone|UTC+0:20|watch}}
Wall clock.jpg This user's time zone is UTC.
{{User time zone|UTC|clock}}
|special-boxes={{User time zone|UTC|clock}}
Wall clock.jpg This user's time zone is GMT.
{{User time zone|GMT|clock}}
|special-boxes={{User time zone|GMT|clock}}
Wall clock.jpg This user's time zone is EST.
{{User time zone|EST|clock}}
|special-boxes={{User time zone|EST|clock}}
Wall clock.jpg This user's time zone is UTC-5.
{{User time zone|UTC-5|clock}}
|special-boxes={{User time zone|UTC-5|clock}}
Wall clock.jpg This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20|clock}}
|special-boxes={{User time zone|UTC+0:20|clock}}
Windup alarm clock.jpg This user's time zone is UTC.
{{User time zone|UTC|alarm}}
|special-boxes={{User time zone|UTC||alarm}}
Windup alarm clock.jpg This user's time zone is GMT.
{{User time zone|GMT|alarm}}
|special-boxes={{User time zone|GMT|alarm}}
Windup alarm clock.jpg This user's time zone is EST.
{{User time zone|EST|alarm}}
|special-boxes={{User time zone|EST|alarm}}
Windup alarm clock.jpg This user's time zone is UTC-5.
{{User time zone|UTC-5|alarm}}
|special-boxes={{User time zone|UTC-5|alarm}}
Windup alarm clock.jpg This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20|alarm}}
|special-boxes={{User time zone|UTC+0:20|alarm}}

Offsets[edit]

Available UTC offsets: UTC+14, UTC+13:45, UTC+13, UTC+12:45, UTC+12, UTC+11:30, UTC+11, UTC+10:30, UTC+10, UTC+9:30, UTC+9, UTC+8:45, UTC+8:30, UTC+8, UTC+7:30, UTC+7:20, UTC+7, UTC+6:30, UTC+6, UTC+5:45, UTC+5:40, UTC+5:30, UTC+5, UTC+4:51, UTC+4:30, UTC+4, UTC+3:30, UTC+3, UTC+2, UTC+1, UTC+0:30, UTC+0:20, UTC-0:25, UTC-1, UTC-2, UTC-2:30, UTC-3, UTC-3:30, UTC-4, UTC-5, UTC-6, UTC-7, UTC-8, UTC-9, UTC-9:30, UTC-10, UTC-11, UTC-12