Template:CurrentDate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{CurrentDate/dd}} {{#switch: {{CurrentDate/mm}} | |||
| 1 = January | |||
| 2 = February | |||
| 3 = March | |||
| 4 = April | |||
| 5 = May | |||
| 6 = June | |||
| 7 = July | |||
| 8 = August | |||
| 9 = September | |||
| 10 = October | |||
| 11 = November | |||
| 12 = December | |||
| MONTH }}, {{CurrentDate/yy}}</includeonly> | |||
==Usage== | |||
Edit the subpages for [[Template:CurrentDate/dd|day]], [[Template:CurrentDate/mm|month]], and [[Template:CurrentDate/yy|year]] to maintain correct date here and in templates. | |||
For templates, where CurrentDate is required, use either full form (CurrentDate) or the appropriate subpage from below: | |||
{| class="wikitable" | |||
|- | |||
! Subpage | |||
! Output Format | |||
! Example | |||
|- | |||
| [[Template:CurrentDate/dd|/dd]] | |||
| d | |||
| {{CurrentDate/dd}} | |||
|- | |||
| [[Template:CurrentDate/mm|/mm]] | |||
| m | |||
| {{CurrentDate/mm}} | |||
|- | |||
| [[Template:CurrentDate/yy|/yy]] | |||
| yyyy | |||
| {{CurrentDate/yy}} | |||
|- | |||
| [[Template:CurrentDate/Short|/Short]] | |||
| dd/mm/yy | |||
| {{CurrentDate/Short}} | |||
|- | |||
| [[Template:CurrentDate/Dev|/Dev]] | |||
| yyyy-mm-dd | |||
| {{CurrentDate/Dev}} | |||
|} |
Latest revision as of 08:00, 23 March 2016
Usage
Edit the subpages for day, month, and year to maintain correct date here and in templates.
For templates, where CurrentDate is required, use either full form (CurrentDate) or the appropriate subpage from below:
Subpage | Output Format | Example |
---|---|---|
/dd | d | 1 |
/mm | m | 8 |
/yy | yyyy | 2306 |
/Short | dd/mm/yy | 01/08/2306 |
/Dev | yyyy-mm-dd | 2306-08-01 |