Template:CurrentDate: Difference between revisions
From Absit Omen Lexicon
mNo edit summary |
mNo edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
| | | date ={{#invoke: CurrentDateOutput | date_text}} | ||
| | | iso ={{#invoke: CurrentDateOutput | date_iso}} | ||
| | | 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
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 "—"
The above documentation is transcluded from Template:CurrentDate/doc. (edit | history) |