Difference between revisions of "Template:UB Timezone"

From Nookipedia, the Animal Crossing wiki
Line 10: Line 10:
 
==Usage==
 
==Usage==
 
===Base===
 
===Base===
<pre>{{UB Timezone|<Offset>}}</pre>
+
<pre>{{UB Timezone|<Timezone>}}</pre>
  
 
'''''Note:''' the first field must be filled out in order for the userbox to display properly.''
 
'''''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:
+
This userbox is set to display a link to a timezone page on Wikipedia. Replace ''<Offset>'' in the above code with the desired link. A list of UTC 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+01:00/UTC-01:00'': UTC±Full Offset
 
*''UTC+1/UTC-1'': UTC±Offset, without zeroes
 
*''UTC+1/UTC-1'': UTC±Offset, without zeroes
Line 21: Line 21:
 
===Customization===
 
===Customization===
 
The link text displayed may be customized:
 
The link text displayed may be customized:
<pre>{{UB Timezone|<Offset>|<Display>}}</pre>
+
<pre>{{UB Timezone|<Timezone>|<Display>}}</pre>
 
Replace <Display> in the above code with the text to be displayed as the link.
 
Replace <Display> in the above code with the text to be displayed as the link.
  
Line 30: Line 30:
 
}}
 
}}
 
{{UBDisplay
 
{{UBDisplay
|box={{UB Timezone|UTC−09:00|the Alaska Time Zone}}
+
|box={{UB Timezone|Alaska Time Zone|the Alaska Time Zone}}
|use=<nowiki>{{UB Timezone|UTC−09:00|the Alaska Time Zone}}</nowiki>
+
|use=<nowiki>{{UB Timezone|Alaska Time Zone|the Alaska Time Zone}}</nowiki>
 
}}
 
}}
 
[[Category:Userboxes]]</noinclude>
 
[[Category:Userboxes]]</noinclude>

Revision as of 13:36, December 19, 2013

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

Usage

Base

{{UB Timezone|<Timezone>}}

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 desired link. A list of UTC 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|<Timezone>|<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|Alaska Time Zone|the Alaska Time Zone}}