Difference between revisions of "Template:Date"

From LGPedia
Jump to: navigation, search
(warning...)
(disabling "cat" parameter)
Line 17: Line 17:
 
| 3 | 23 = rd
 
| 3 | 23 = rd
 
| #default = th
 
| #default = th
}}, {{{1|{{CURRENTYEAR}}}}}{{#if: {{{cat|}}} | <includeonly>[[Category:{{{cat}}}|{{{1|{{CURRENTYEAR}}}}} {{#switch: {{{2|{{CURRENTMONTH}}}}}
+
}}, {{{1|{{CURRENTYEAR}}}}}<includeonly>[[Category:Videos by date|{{{1|{{CURRENTYEAR}}}}} {{#switch: {{{2|{{CURRENTMONTH}}}}}
 
| 1  | Jan | January  = 01
 
| 1  | Jan | January  = 01
 
| 2  | Feb | February  = 02
 
| 2  | Feb | February  = 02
Line 30: Line 30:
 
| 11 | Nov | November  = 11
 
| 11 | Nov | November  = 11
 
| 12 | Dec | December  = 12
 
| 12 | Dec | December  = 12
}} {{{3|{{CURRENTDAY}}}}}]]</includeonly>}}<noinclude>
+
}} {{{3|{{CURRENTDAY}}}}}]]</includeonly><noinclude>
 
==Usage==
 
==Usage==
<pre>{{date|YEAR|MONTH|DAY|cat=CATEGORY}}</pre>
+
<pre>{{date|YEAR|MONTH|DAY}}</pre>
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. The "cat" field is optional, but if provided, the page will be categorized in '''Category:CATEGORY''' and sorted by the date.
+
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.  
 
'''Warning:''' Do NOT use this template without any parameters unless you want the date to update every day. Instead, manually insert the correct date.  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 22:33, 3 March 2008

April 26th, 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.