Template:Today: Difference between revisions
Appearance
Created page with '<includeonly>{{subst:</includeonly><includeonly>empty template|{{error:not substituted|}}}}</includeonly><includeonly>{</includeonly><includeonly>{</includeonly><includeonly>date…' |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{</includeonly><includeonly>{</includeonly><includeonly>date</includeonly><includeonly>|{{</includeonly><includeonly>subst:</includeonly><includeonly>#time:j F Y|{{</includeonly><includeonly>subst:</includeonly><includeonly>#iferror:{{</includeonly><includeonly>subst:</includeonly><includeonly>#time:Y|{{{1|*error*}}}}}||{{{1|}}} }}</includeonly><includeonly>}}</includeonly><noinclude><!--datefmt begin--></noinclude><includeonly>|{{</includeonly><includeonly>subst:</includeonly><includeonly>#switch:</includeonly><includeonly>{{subst:</includeonly><includeonly>lc:</includeonly><includeonly>{{{</includeonly><includeonly>2|</includeonly><includeonly>}}}}}|none|asis|mdy|lmdy|ymd|lymd|iso|liso|ldmy=</includeonly><includeonly><includeonly>{{subst:</includeonly><includeonly>lc:</includeonly><includeonly>{{{</includeonly><includeonly>2|</includeonly><includeonly>}}}}}|dmy|#default=dmy</includeonly><includeonly>}}</includeonly><noinclude><!--datefmt end--></noinclude><includeonly>}}</includeonly><noinclude> | |||
<!-- This template must be SUBSTITUTED --> | <!-- This template must be SUBSTITUTED --> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add cats and interwikis to the /doc subpage, not here! --> | <!-- Add cats and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Revision as of 16:53, 8 February 2010
[edit] []
Template documentation
|
|
This template must be (subst:) substituted. |
{{subst:today}} permanently inserts today's date into an article.
To insert a 'live' (continuously updated) date, use {{date}} instead.
Usage
{{subst:today}}causes today's date to be written into a page. The date will not change.
The template must be called with subst:.
In subsequent edits to the page, the date will appear as {{date|2025-12-05}}, and — subject to the date reformatting rules available to {{date}} — in direct views as 5 December 2025.
Examples
{{subst:today}}
| The above documentation is transcluded from Template:Today/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |