Difference between revisions of "Template:UB Timezone"

From Nookipedia, the Animal Crossing wiki
m (formatted to standard userbox size)
m (Text replacement - "\[\[Wikipedia:([^\|]+)\|([^\]]+)\]\]" to "{{wp|$1|$2}}")
 
(One intermediate revision by one other user not shown)
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
}}<noinclude>{{clr}}
+
}}<noinclude>{{clear}}
  
 
==Usage==
 
==Usage==
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 22:53, January 10, 2023

Wall clock.png This user's time zone is [[wikipedia:en:{{{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}}