Template:User time zone: Difference between revisions
m (importing wikitemplate) |
(+cat+usermacro) |
||
Line 3: | Line 3: | ||
| 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{{!}}41px]]|alarm=[[Image:Windup alarm clock.jpg{{!}}46px]]|world=[[Image:Nuvola apps kworldclock.png{{!}}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{{!}}41px]]|alarm=[[Image:Windup alarm clock.jpg{{!}}46px]]|world=[[Image:Nuvola apps kworldclock.png{{!}}46px]]|{{{1}}}}} |
||
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: font color;" | This user's time zone is '''{{#if:{{{3|}}}|{{{3}}}|{{{1}}}|{{{1}}}}}'''. |
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: font color;" | This user's time zone is '''{{#if:{{{3|}}}|{{{3}}}|{{{1}}}|{{{1}}}}}'''. |
||
|}</div><noinclude> |
|}</div><noinclude>{{clear}} |
||
---- |
---- |
||
This template is meant to replace all other time zone related templates. Please see the usage to create your template. |
This template is meant to replace all other time zone related templates. Please see the usage to create your template. |
||
Line 17: | Line 17: | ||
!Template output |
!Template output |
||
!Stand alone code |
!Stand alone code |
||
!{{tl|userboxmacro}} code |
|||
![[Template:Babel-X|Babel-X box]] code |
|||
|- |
|- |
||
|{{User time zone|UTC}} |
|{{User time zone|UTC}} |
||
Line 51: | Line 51: | ||
|<tt><nowiki>|time zone{{!}}UTC-5{{!}}world|</nowiki></tt> |
|<tt><nowiki>|time zone{{!}}UTC-5{{!}}world|</nowiki></tt> |
||
|} |
|} |
||
{{WikipediaTemplate}} |
|||
[[Category:Userbox templates|Time zone]] |
|||
[[Category:OBX templates|Time zone]] |
|||
[[Category:Templates using ParserFunctions|Time zone]]</noinclude> |
[[Category:Templates using ParserFunctions|Time zone]]</noinclude> |
Revision as of 18:57, 5 July 2007
{{{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. The second variable is the image you wish to use. There are four images to from which to choose (watch, clock, alarm or world), 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 the timezone abbreviation - 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.
Offsets
See the list of time zones for appropriate values.
Samples
Template output | Stand alone code | {{userboxmacro}} code | ||
---|---|---|---|---|
|
{{User time zone|UTC}} | |time zone{{!}}UTC| | ||
|
{{User time zone|GMT}} | |time zone{{!}}GMT| | ||
|
{{User time zone|UTC-5}} | |time zone{{!}}UTC-5| | ||
|
{{User time zone|UTC+0:20}} | |time zone{{!}}UCT+0:20| | ||
{{User time zone|UTC-5|watch}} | |time zone{{!}}UTC-5{{!}}watch| | |||
{{User time zone|UTC-5|clock}} | |time zone{{!}}UTC-5{{!}}clock| | |||
{{User time zone|UTC-5|alarm}} | |time zone{{!}}UTC-5{{!}}alarm| | |||
{{User time zone|UTC-5|world}} | |time zone{{!}}UTC-5{{!}}world| |
This template was extracted, copied, adapted or otherwise inspired by an existing one in the Wikipedia, which is licensed under the GNU Free Documentation License.