Template:User time zone/DST: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
Added a variable to specify gender. The sentence feels somewhat incomplete without. |
||
Line 1: | Line 1: | ||
{{Userbox |
{{Userbox |
||
|id=[[Template:User time zone/DST{{!}}{{{1}}}]]|id-c=#ccc|id-s=12 |
|id=[[Template:User time zone/DST{{!}}{{{1}}}]]|id-c=#ccc|id-s=12 |
||
|info=This user's [[Standard time|standard]] time zone is '''{{#if:{{{4|}}}|[[{{{4}}}|{{{1}}}]]|[[{{{1}}}]]}}''', but uses '''{{#if:{{{5|}}}|[[{{{5}}}|{{{2}}}]]|[[{{{2}}}]]}}''' from [[Daylight saving time|{{{3}}}]].|info-c=#fff|border-c=#ccc}} |
|info=This user's [[Standard time|standard]] time zone is '''{{#if:{{{4|}}}|[[{{{4}}}|{{{1}}}]]|[[{{{1}}}]]}}''', but {{{gender|}}} uses '''{{#if:{{{5|}}}|[[{{{5}}}|{{{2}}}]]|[[{{{2}}}]]}}''' from [[Daylight saving time|{{{3}}}]].|info-c=#fff|border-c=#ccc}} |
||
<noinclude>{{documentation}}</noinclude> |
<noinclude>{{documentation}}</noinclude> |
Revision as of 15:53, 24 November 2015
This template requires at least three variables, please see usage.
Usage
The first variable of the template represents the name of your standard time zone, it can be UTC with or without an offset, or the zone's abbreviation. The second variable of the template represents the name of your time zone during daylight savings, it can be UTC with or without an offset, or the zone's abbreviation. The third variable is the range of months of year that you observe daylight savings. The fourth and fifth variables are the links for the time zone abbreviation to point to - by default, this is the abbreviation itself, which is usually a disambiguation, not the intended article.
Samples
Template output | Stand alone code | ||
---|---|---|---|
|
{{User time zone/DST|UTC|UTC+01|April to October}}
| ||
|
{{User time zone/DST|UTC−07|UTC−06|March to October}}
| ||
|
{{User time zone/DST|MST|MDT|March to October|Mountain Standard Time|Mountain Daylight Time}}
| ||
|
{{User time zone/DST|UTC−03:30|UTC−02:30|March to October}}
| ||
|
{{User time zone/DST|UTC−03|UTC−02|November to February}}
|