Template:CurrentDate: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{{1}}}
  | day = 20
  | day = 1
  | month =  12
  | month =  1
  | year = 2009
  | year = 2010
  | date = {{#formatdate:2009-12-20}}
  | date = {{#formatdate:2010-1-1}}
  | iso = 2009-12-20
  | iso = 2010-1-1
  | first={{#formatdate:2009-11-15}}
  | first={{#formatdate:2009-12-1}}
  | #default =  
  | #default =  
}}<noinclude>
}}<noinclude>
{{CurrentDate/doc}}
{{documentation}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 22:29, 4 February 2013

[view] [edit] [history] [purge] Documentation icon Template documentation

This template returns the last date of the current dates (2009-12-1-2010-1-1) in play at Absit Omen.

Syntax:
{{CurrentDate|value}}
Values accepted are: date, iso, first, firstiso, range
Example
{{CurrentDate|date}} returns "2010-1-1"
{{CurrentDate|iso}} returns "2010-1-1"
{{CurrentDate|first}} returns "2009-12-1"
{{CurrentDate|firstiso}} returns ""
{{CurrentDate|range}} returns ""
Bulbgraph.png
Note: There is no default value for the CurrentDate template. If a value is not entered, nothing will be displayed.

The above documentation is transcluded from Template:CurrentDate/doc. (edit | history)
Please add categories and interwikis to the /doc subpage. Subpages of this template.