Template:CurrentDate: Difference between revisions

From RabastorWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{Template:CurrentDate/dd}} {{#switch: {{Template:CurrentDate/mm}}
<includeonly>{{CurrentDate/dd}}&nbsp;{{#switch: {{CurrentDate/mm}}
  |  1 = January
  |  1 = January
  |  2 = February
  |  2 = February
Line 12: Line 12:
  | 11 = November
  | 11 = November
  | 12 = December
  | 12 = December
  | MONTH }},&nbsp;{{Template:CurrentDate/yy}}
  | MONTH }},&nbsp;{{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