Difference between revisions of "Template:CurrentDate"

From Sim Football Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
  | 12 = December
 
  | 12 = December
 
  | MONTH }},&nbsp;{{CurrentDate/yy}}</includeonly>
 
  | MONTH }},&nbsp;{{CurrentDate/yy}}</includeonly>
==Usage==
+
<noinclude>==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.
 
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.
 +
 +
Example usage: <nowiki>The current date is {{CurrentDate}}</nowiki> will return "The current date is {{CurrentDate}}"
  
 
For templates, where CurrentDate is required, use either full form (CurrentDate) or the appropriate subpage from below:
 
For templates, where CurrentDate is required, use either full form (CurrentDate) or the appropriate subpage from below:
Line 35: Line 37:
 
| {{CurrentDate/yy}}
 
| {{CurrentDate/yy}}
 
|}
 
|}
 +
</noinclude>

Revision as of 11:01, 12 March 2018

Usage

Edit the subpages for day, month, and year to maintain correct date here and in templates.

Example usage: The current date is {{CurrentDate}} will return "The current date is 23 May, 2066 "

For templates, where CurrentDate is required, use either full form (CurrentDate) or the appropriate subpage from below:

Subpage Output Format Example
/dd d 23
/mm m 05
/yy yyyy 2066