Difference between revisions of "Template:Date"
From LGPedia
(more functionality) |
m |
||
Line 17: | Line 17: | ||
| 3 | 23 = rd | | 3 | 23 = rd | ||
| #default = th | | #default = th | ||
− | }}, {{{1|{{CURRENTYEAR}}}}}{{#if: {{{cat|}}} <includeonly>[[Category:{{{cat}}}s by date|{{{1|{{CURRENTYEAR}}}}} {{{2|{{CURRENTMONTH}}}}} {{{3|{{CURRENTDAY}}}}}]]</includeonly>}}<noinclude> | + | }}, {{{1|{{CURRENTYEAR}}}}}{{#if: {{{cat|}}} | <includeonly>[[Category:{{{cat}}}s by date|{{{1|{{CURRENTYEAR}}}}} {{{2|{{CURRENTMONTH}}}}} {{{3|{{CURRENTDAY}}}}}]]</includeonly>}}<noinclude> |
==Usage== | ==Usage== | ||
<pre>{{date|YEAR|MONTH|DAY|cat=CATEGORY}}</pre> | <pre>{{date|YEAR|MONTH|DAY|cat=CATEGORY}}</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. The "cat" field is optional, but if provided, the page will be categorized in '''Category:CATEGORY''' and sorted by the date. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 06:33, 26 February 2008
April 26th, 2024
Usage
{{date|YEAR|MONTH|DAY|cat=CATEGORY}}
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.