Template:CurrentDate: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{{1}}}
  | date ={{#invoke: CurrentDate | currentText}}
  | date ={{#formatdate:{{#invoke: CurrentDate | currentText}}}}
  | iso = 2012-04-30
  | iso = 2012-04-30
  | first={{#formatdate:2012-02-01}}
  | first={{#formatdate:2012-02-01}}

Revision as of 20:06, 23 February 2022

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

This template returns the last date of the current dates (2012-02-01-Script error: The function "currentText" does not exist.) in play at Absit Omen.

Syntax:
{{CurrentDate|value}}
Values accepted are: date, iso, first, firstiso, range
Example
{{CurrentDate|date}} returns "Script error: The function "currentText" does not exist."
{{CurrentDate|iso}} returns "2012-04-30"
{{CurrentDate|first}} returns "2012-02-01"
{{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.