Difference between revisions of "Template:UB Timezone"

From Nookipedia, the Animal Crossing wiki
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}}
<br clear=all>
+
 
===Available [[wikipedia:Coordinated Universal Time|UTC]] offsets===
+
==Usage==
[[wikipedia:UTC+14|+14]], [[wikipedia:UTC+13:45|+13:45]], [[wikipedia:UTC+13|+13]], [[wikipedia:UTC+12:45|+12:45]], [[wikipedia:UTC+12|+12]], [[wikipedia:UTC+11:30|+11:30]], [[wikipedia:UTC+11|+11]], [[wikipedia:UTC+10:30|+10:30]], [[wikipedia:UTC+10|+10]], [[wikipedia:UTC+9:30|+9:30]], [[wikipedia:UTC+9|+9]], [[wikipedia:UTC+8:45|+8:45]], [[wikipedia:UTC+8:30|+8:30]], [[wikipedia:UTC+8|+8]], [[wikipedia:UTC+7:30|+7:30]], [[wikipedia:UTC+7:20|+7:20]], [[wikipedia:UTC+7|+7]], [[wikipedia:UTC+6:30|+6:30]], [[wikipedia:UTC+6|+6]], [[wikipedia:UTC+5:45|+5:45]], [[wikipedia:UTC+5:40|+5:40]], [[wikipedia:UTC+5:30|+5:30]], [[wikipedia:UTC+5|+5]], [[wikipedia:UTC+4:51|+4:51]], [[wikipedia:UTC+4:30|+4:30]], [[wikipedia:UTC+4|+4]], [[wikipedia:UTC+3:30|+3:30]], [[wikipedia:UTC+3|+3]], [[wikipedia:UTC+2|+2]], [[wikipedia:UTC+1|+1]], [[wikipedia:UTC+0:30|+0:30]], [[wikipedia:UTC+0:20|+0:20]], [[wikipedia:UTC-0:25|-0:25]], [[wikipedia:UTC-1|-1]], [[wikipedia:UTC-2|-2]], [[wikipedia:UTC-2:30|-2:30]], [[wikipedia:UTC-3|-3]], [[wikipedia:UTC-3:30|-3:30]], [[wikipedia:UTC-4|-4]], [[wikipedia:UTC-5|-5]], [[wikipedia:UTC-6|-6]], [[wikipedia:UTC-7|-7]], [[wikipedia:UTC-8|-8]], [[wikipedia:UTC-9|-9]], [[wikipedia:UTC-9:30|-9:30]], [[wikipedia:UTC-10|-10]], [[wikipedia:UTC-11|-11]], [[wikipedia:UTC-12|-12]]
+
===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

Wall clock.png This user's time zone is [[Wikipedia:{{{1}}}|{{{1}}}]].

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

Wall clock.png This user's time zone is UTC−07:00.
{{UB Timezone|UTC−07:00}}
Wall clock.png This user's time zone is the Alaska Time Zone.
{{UB Timezone|UTC−09:00|the Alaska Time Zone}}