Difference between revisions of "Template:Date"

From LGPedia
Jump to: navigation, search
(fix sorting token)
m
Line 17: Line 17:
 
| 3 | 23 = rd
 
| 3 | 23 = rd
 
| #default = th
 
| #default = th
}}, {{{1|{{CURRENTYEAR}}}}}<includeonly>[[Category:Videos by date|{{{1|{{CURRENTYEAR}}}}} {{#switch: {{{2|{{CURRENTMONTH}}}}}
+
}}, {{{1|{{CURRENTYEAR}}}}}<noinclude>
| 1  | Jan | January  = 01
+
| 2  | Feb | February  = 02
+
| 3  | Mar | March    = 03
+
| 4  | Apr | April    = 04
+
| 5  | May            = 05
+
| 6  | Jun | June      = 06
+
| 7  | Jul | July      = 07
+
| 8  | Aug | August    = 08
+
| 9  | Sep | September = 09
+
| 10 | Oct | October  = 10
+
| 11 | Nov | November  = 11
+
| 12 | Dec | December  = 12
+
}} {{#switch: {{{3|{{CURRENTDAY}}}}}
+
| 1 = 01
+
| 2 = 02
+
| 3 = 03
+
| 4 = 04
+
| 5 = 05
+
| 6 = 06
+
| 7 = 07
+
| 8 = 08
+
| 9 = 09
+
| #default = {{{3|{{CURRENTDAY}}}}}
+
}}]]</includeonly><noinclude>
+
 
==Usage==
 
==Usage==
 
<pre>{{date|YEAR|MONTH|DAY}}</pre>
 
<pre>{{date|YEAR|MONTH|DAY}}</pre>

Revision as of 20:19, 5 March 2008

April 27th, 2024

Usage

{{date|YEAR|MONTH|DAY}}

where YEAR, and DAY are both numerical values and MONTH is either the name of the month, the first three letters of the name of the month, or a numerical value corresponding to the month. If a parameter is left out, the current year/month/day will be used instead.

Warning: Do NOT use this template without any parameters unless you want the date to update every day. Instead, manually insert the correct date.