Difference between revisions of "Template:CurrentDate"

From Sim Football Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{CurrentDate/dd}} {{#switch: {{CurrentDate/mm}} | 1 = January | 2 = February | 3 = March | 4 = April | 5 = May | 6 = June | 7 = July | 8 = A...")
 
m
 
(3 intermediate revisions by the same user not shown)
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}}"
 +
 +
Last update was to sync the IC calendar with Week {{CurrentWeek}} of Season {{CurrentSeason}}
  
 
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 34: Line 38:
 
| yyyy
 
| yyyy
 
| {{CurrentDate/yy}}
 
| {{CurrentDate/yy}}
|-
 
| [[Template:CurrentDate/Short|/Short]]
 
| dd/mm/yy
 
| {{CurrentDate/Short}}
 
|-
 
| [[Template:CurrentDate/Dev|/Dev]]
 
| yyyy-mm-dd
 
| {{CurrentDate/Dev}}
 
 
|}
 
|}
 +
</noinclude>

Latest revision as of 09:54, 15 July 2019

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 09 December, 2063 "

Last update was to sync the IC calendar with Week 11 of Season 48

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

Subpage Output Format Example
/dd d 09
/mm m 12
/yy yyyy 2063