Difference between revisions of "Template:Date"

From LGPedia
Jump to: navigation, search
(disabling "cat" parameter)
(fix sorting token)
Line 30: Line 30:
 
| 11 | Nov | November  = 11
 
| 11 | Nov | November  = 11
 
| 12 | Dec | December  = 12
 
| 12 | Dec | December  = 12
}} {{{3|{{CURRENTDAY}}}}}]]</includeonly><noinclude>
+
}} {{#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 04:42, 4 March 2008

March 29th, 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.