Difference between revisions of "Template:Today"

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
 
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>
+
<includeonly>{{subst:</includeonly><includeonly>empty template|{{error:not substituted|}}}}</includeonly><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>

Latest revision as of 16:56, 8 February 2010

[edit] [purge] Template documentation

{{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|2024-11-22}}, and — subject to the date reformatting rules available to {{date}} — in direct views as 22 November 2024.

Examples