Template:CurrentDate: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
  | firstiso = {{#invoke: CurrentDateOutput | first_date_iso}}
  | 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>
  | 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><time>Time</time>
[[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.