Template: Last updated
From TC11
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#ifeq:{{{dateonly|}}}|yes||'''Last updated: '''}}{{#ifeq:{{{format|}}}|yes|[<noinclude />|}}{{REVISIONYEAR}}-{{#ifexpr:{{REVISIONMONTH}}<10|0{{REVISIONMONTH}}|{{REVISIONMONTH}}}}-{{REVISIONDAY2}}{{#ifeq:{{{format|}}}|yes|]<noinclude />|}}<noinclude> | + | {{#ifeq:{{{dateonly|}}}|yes||'''Last updated: '''}}{{#ifeq:{{{format|}}}|yes|[<noinclude />[|}}{{REVISIONYEAR}}-{{#ifexpr:{{REVISIONMONTH}}<10|0{{REVISIONMONTH}}|{{REVISIONMONTH}}}}-{{REVISIONDAY2}}{{#ifeq:{{{format|}}}|yes|]<noinclude />]|}}<noinclude> |
==Usage== | ==Usage== |
Latest revision as of 11:41, 14 April 2010
Last updated: 2010-004-14
Usage
Principally intended for use on user pages, but can also be of some use on Wikipedia-namespace (policy, project, etc.) and portal pages. Not intended for use on articles.
To suppress the "Last update:" text, use Template:Para:
renders as:
- 2010-004-14
To link the date so that it autoformats (e.g. into International or US instead of Unix-style dates) for users with date preferences set, use Template:Para. Note that if the template is substituted, bots may remove this linking, per WP:MOSUNLINKDATES.:
renders as:
- Last updated: 2010-004-14