Difference between revisions of "Template:UB Timezone"
From Nookipedia, the Animal Crossing wiki
m (Sky moved page Template:Timezone to Template:UB Timezone) |
|||
Line 3: | Line 3: | ||
|id-c = #ccc | |id-c = #ccc | ||
|id-s = 12 | |id-s = 12 | ||
− | |info = This user's time zone is '''[[Wikipedia:{{{1}}}|{{{1}}}]]'''. | + | |info = This user's time zone is '''[[Wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]'''. |
|info-c = #fff | |info-c = #fff | ||
|border-c = #ccc | |border-c = #ccc | ||
− | }}<noinclude> | + | }}<noinclude>{{clr}} |
− | + | ||
− | === | + | ==Usage== |
− | + | ===Base=== | |
− | [[Category:Userboxes]] | + | <pre>{{UB Timezone|<Offset>}}</pre> |
− | </noinclude> | + | |
+ | '''''Note:''' the first field must be filled out in order for the userbox to display properly.'' | ||
+ | |||
+ | This userbox is set to display a link to a timezone page on Wikipedia. Replace ''<Offset>'' in the above code with the UTC offset to be displayed. A list of offsets is available [[Wikipedia:List of UTC time offsets|here]]. The following formats are acceptable: | ||
+ | *''UTC+01:00/UTC-01:00'': UTC±Full Offset | ||
+ | *''UTC+1/UTC-1'': UTC±Offset, without zeroes | ||
+ | *''GMT+1/GMT-1'': GMT±Offset, without zeroes | ||
+ | |||
+ | ===Customization=== | ||
+ | The link text displayed may be customized: | ||
+ | <pre>{{UB Timezone|<Offset>|<Display>}}</pre> | ||
+ | Replace <Display> in the above code with the text to be displayed as the link. | ||
+ | |||
+ | ===Example=== | ||
+ | {{UBDisplay | ||
+ | |box={{UB Timezone|UTC−07:00}} | ||
+ | |use=<nowiki>{{UB Timezone|UTC−07:00}}</nowiki> | ||
+ | }} | ||
+ | {{UBDisplay | ||
+ | |box={{UB Timezone|UTC−09:00|the Alaska Time Zone}} | ||
+ | |use=<nowiki>{{UB Timezone|UTC−09:00|the Alaska Time Zone}}</nowiki> | ||
+ | }} | ||
+ | [[Category:Userboxes]]</noinclude> |
Revision as of 13:34, December 19, 2013
Usage
Base
{{UB Timezone|<Offset>}}
Note: the first field must be filled out in order for the userbox to display properly.
This userbox is set to display a link to a timezone page on Wikipedia. Replace <Offset> in the above code with the UTC offset to be displayed. A list of offsets is available here. The following formats are acceptable:
- UTC+01:00/UTC-01:00: UTC±Full Offset
- UTC+1/UTC-1: UTC±Offset, without zeroes
- GMT+1/GMT-1: GMT±Offset, without zeroes
Customization
The link text displayed may be customized:
{{UB Timezone|<Offset>|<Display>}}
Replace <Display> in the above code with the text to be displayed as the link.
Example
| ||
{{UB Timezone|UTC−07:00}} |
| ||
{{UB Timezone|UTC−09:00|the Alaska Time Zone}} |