Template:Last updated: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{main other|<!--If used in article space, output nothing -->|{{#ifeq:{{{dateonly|}}}|yes||'''Last updated: '''}}{{#ifeq:{{{format|}}}|yes|[<noinclude />[|}}{{REVISIONYEAR}}-{{#ifexpr:{{REVISIONMONTH}}<10|{{REVISIONMONTH}}|{{REVISIONMONTH}}}}-{{REVISIONDAY2}}{{#ifeq:{{{format|}}}|yes|]<noinclude />]|}}}}<noinclude>{{documentation}}</noinclude>") |
m (Remove inability to place on articles) |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{dateonly|}}}|yes||'''Last updated: '''}}{{#ifeq:{{{format|}}}|yes|[<noinclude />[|}}{{REVISIONYEAR}}-{{#ifexpr:{{REVISIONMONTH}}<10|{{REVISIONMONTH}}|{{REVISIONMONTH}}}}-{{REVISIONDAY2}}{{#ifeq:{{{format|}}}|yes|]<noinclude />]|}}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 22:34, 12 November 2024
Last updated: 2024-11-12
Usage
This template outputs the latest revision date of the page that it is used on.
Principally intended for use on user pages, but can also be of some use on Wikipedia-namespace (policy, project, etc.) and portal pages.
To suppress the "Last updated:" text, use |dateonly=yes
:
{{Last updated|dateonly=yes}}
renders as:
- 2024-11-12
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 |format=yes
. Note that if the template is substituted, bots may remove this linking, per WP:MOSUNLINKDATES.:
{{Last updated|format=yes}}
renders as:
- Last updated: 2024-11-12
The above documentation is transcluded from Template:Last updated/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |