Template:User time zone: Difference between revisions

From TestWiki
Content added Content deleted
m (Please suck less.)
mNo edit summary
Line 1: Line 1:
<div style="border:solid #ccc 1px;margin: 1px;">
<div style="float: left; border: solid #ccc 1px; margin: 1px">
{| cellspacing="0" style="width:238px;background: #fff;"
{| cellspacing="0" style="width: 238px; background: #fff"
| style="width:45px;height:45px;background:#ccc;text-align:center;font-size:14pt;color:font color;"| {{#switch:{{{2}}}|watch=[[Image:Noia 64 apps clock.png{{!}}46px]]|clock=[[Image:Wall clock.jpg{{!}}46px]]|alarm=[[Image:Windup alarm clock.jpg{{!}}46px]]|{{{1}}}}}
| style="width:45px;height:45px;background:#ccc;text-align:center;font-size:14pt;color:font color;"| {{#switch:{{{2}}}|watch=[[Image:Noia 64 apps clock.png{{!}}46px]]|clock=[[Image:Wall clock.jpg{{!}}46px]]|alarm=[[Image:Windup alarm clock.jpg{{!}}46px]]|{{1}}}}
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: font color;" | This user's time zone is '''[[{{{1}}}]]'''.
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: font color;" | This user's time zone is '''[[{{{1}}}]]'''.
|}</div><noinclude>{{clear}}
|}</div><noinclude>{{clear}}

Revision as of 04:35, 25 August 2006

Template:1 This user's time zone is [[{{{1}}}]].

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. If you do not want your link to your time zone's abbreviation to go to a disambiguation page, use the following syntax to link to the correct article: time zone{{!}}time zone abbreviation. Please use an image if you link directly to an article. 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.

Samples

Template output Stand alone code Babel box code
Template:1 This user's time zone is UTC.
{{User time zone|UTC}}
|time zone{{!}}UTC|
Template:1 This user's time zone is GMT.
{{User time zone|GMT}}
|time zone{{!}}GMT|
Template:1 This user's time zone is EST.
{{User time zone|EST}}
|time zone{{!}}EST|
Template:1 This user's time zone is UTC-5.
{{User time zone|UTC-5}}
|time zone{{!}}UTC-5|
Template:1 This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20}}
|time zone{{!}}UCT+0:20|
File:Noia 64 apps clock.png This user's time zone is UTC.
{{User time zone|UTC|watch}}
|time zone{{!}}UTC{{!}}watch|
File:Noia 64 apps clock.png This user's time zone is GMT.
{{User time zone|GMT|watch}}
|time zone{{!}}GMT{{!}}watch|
File:Noia 64 apps clock.png This user's time zone is EST.
{{User time zone|EST|watch}}
|time zone{{!}}EST{{!}}watch|
File:Noia 64 apps clock.png This user's time zone is UTC-5.
{{User time zone|UTC-5|watch}}
|time zone{{!}}UTC-5{{!}}watch|
File:Noia 64 apps clock.png This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20|watch}}
|time zone{{!}}UTC+0:20{{!}}watch|
This user's time zone is UTC.
{{User time zone|UTC|clock}}
|time zone{{!}}UTC{{!}}clock|
This user's time zone is GMT.
{{User time zone|GMT|clock}}
|time zone{{!}}GMT{{!}}clock|
This user's time zone is EST.
{{User time zone|EST|clock}}
|time zone{{!}}EST{{!}}clock|
This user's time zone is UTC-5.
{{User time zone|UTC-5|clock}}
|time zone{{!}}UTC-5{{!}}clock|
This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20|clock}}
|time zone{{!}}UTC+0:20{{!}}clock|
This user's time zone is UTC.
{{User time zone|UTC|alarm}}
|time zone{{!}}UTC{{!}}|alarm|
This user's time zone is GMT.
{{User time zone|GMT|alarm}}
|time zone{{!}}GMT{{!}}alarm|
This user's time zone is EST.
{{User time zone|EST|alarm}}
|time zone{{!}}EST{{!}}alarm|
This user's time zone is UTC-5.
{{User time zone|UTC-5|alarm}}
|time zone{{!}}UTC-5{{!}}alarm|
This user's time zone is UTC+0:20.
{{User time zone|UTC+0:20|alarm}}
|time zone{{!}}UTC+0:20{{!}}alarm|