Template:CurrentDate: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{{1}}}
  | date ={{#invoke: CurrentDate | currentText}}
  | date ={{#invoke: CurrentDateOutput | date_text}}
  | iso = 2012-04-30
  | iso ={{#invoke: CurrentDateOutput | date_iso}}
  | first={{#formatdate:2012-02-01}}
  | first={{#invoke: CurrentDateOutput | first_date_text}}
| firstiso = {{#invoke: CurrentDateOutput | first_date_iso}}
| range = <time datetime="{{#invoke: CurrentDateOutput | first_date_iso}}">{{#invoke: CurrentDateOutput | first_date_text}}</time>—<time datetime="{{#invoke: CurrentDateOutput | date_iso}}">{{#invoke: CurrentDateOutput | date_text}}</time>
| year = {{#invoke: CurrentDateOutput | y}}
| month = {{#invoke: CurrentDateOutput | m}}
| day = {{#invoke: CurrentDateOutput | d}}
  | #default =  
  | #default =  
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 23:42, 23 February 2022

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

This template returns the last date of the current dates (1 January 2018-31 March 2018) in play at Absit Omen.

Syntax:
{{CurrentDate|value}}
Values accepted are: date, iso, first, firstiso, range
Example
{{CurrentDate|date}} returns "31 March 2018"
{{CurrentDate|iso}} returns "2018-03-31"
{{CurrentDate|first}} returns "1 January 2018"
{{CurrentDate|firstiso}} returns "2018-01-01"
{{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.