Template:Update/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Debresser
Put merge message up front.
meta>Waldyrious
document unnamed parameters. move table to example section.
Line 8: Line 8:
To add the date when the tag was added, use:
To add the date when the tag was added, use:
: {{Tlx|Update|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
: {{Tlx|Update|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
To specify what parts of the article need updating, use the first unnamed parameter:
: {{Tlx|Update|<nowiki>Foo [[bar]] qux</nowiki>}}
To display the date of the last update, use the second unnamed parameter:
: {{Tlx|Update|{{!}}{{#time:j F Y|-1 month}}}}
To mark a section, use:
To mark a section, use:
: {{Tlx|Update|type{{=}}section}}
: {{Tlx|Update|type{{=}}section}}
or alternatively, use the {{Tl|Update section}} template, which produces a warning that the section (rather than the article) is out of date.
or alternatively, use the {{Tl|Update section}} template, which produces a warning that the section (rather than the article) is out of date.
==Example==
{{Tlx|Update|documentation}}
{{Update|documentation}}
The template detects which [[Wikipedia:Namespace|namespace]] it is used in and changes accordingly:
{| class="wikitable"
{| class="wikitable"
|+ The template detects which [[Wikipedia:Namespace|namespace]] it is used in and changes accordingly:
! Article
! Article
| {{Update|type=article|demospace=main|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{Update|type=article|demospace=main|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
Line 24: Line 33:


This template will add articles to [[:Category:Wikipedia articles in need of updating]].
This template will add articles to [[:Category:Wikipedia articles in need of updating]].
==Example==
{{Tlx|Update|documentation}}
{{Update|documentation}}


==Alternatives==
==Alternatives==

Revision as of 17:07, 11 January 2013

Template:Tfm

Usage

This template can be used to mark articles or sections with old or out-of-date information.

To add the date when the tag was added, use:

{{Update|date=November 2024}}

To specify what parts of the article need updating, use the first unnamed parameter:

{{Update|Foo [[bar]] qux}}

To display the date of the last update, use the second unnamed parameter:

{{Update||24 October 2024}}

To mark a section, use:

{{Update|type=section}}

or alternatively, use the {{Update section}} template, which produces a warning that the section (rather than the article) is out of date.

Example

{{Update|documentation}}

The template detects which namespace it is used in and changes accordingly:

Article
Category
Template

This template will add articles to Category:Wikipedia articles in need of updating.

Alternatives

See also