Difference between revisions of "Template:UB Timezone"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - "{{clr}}" to "{{clear}}")
m (Text replacement - "\[\[Wikipedia:([^\|]+)\|([^\]]+)\]\]" to "{{wp|$1|$2}}")
 
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}}}|{{{2|{{{1}}}}}}]]'''.
+
   |info    = This user's time zone is '''{{wp|{{{1}}}|{{{2|{{{1}}}}}}}}'''.
 
   |info-c  = #fff
 
   |info-c  = #fff
 
   |border-c = #ccc
 
   |border-c = #ccc
Line 14: Line 14:
 
'''''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 desired link. A list of UTC 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 {{wp|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

Latest revision as of 21:53, January 10, 2023

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

{{UB Timezone|UTC−07:00}}
{{UB Timezone|Alaska Time Zone|the Alaska Time Zone}}