Template:User time zone: Difference between revisions
(+cat+usermacro) |
m (remove redundant Category:OBX templates) |
||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
==Usage== |
==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 |
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 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 '''<code><nowiki>time zone{{!}}time zone abbreviation</nowiki></code>''' in the first argument is still currently supported, but requires that an image be used. |
||
===Offsets=== |
===Offsets=== |
||
Line 53: | Line 53: | ||
{{WikipediaTemplate}} |
{{WikipediaTemplate}} |
||
[[Category:Userbox templates|Time zone]] |
[[Category:Userbox templates|Time zone]] |
||
[[Category:OBX templates|Time zone]] |
|||
[[Category:Templates using ParserFunctions|Time zone]]</noinclude> |
[[Category:Templates using ParserFunctions|Time zone]]</noinclude> |
Latest revision as of 23:13, 17 November 2008
{{{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 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.