Template:Update/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SamB
→‎Example: Demo one of the examples from the Usage section ... which turns out not to work.
meta>Frietjes
fix demonstration
Line 34: Line 34:


{{Tlx|Update|section}} comes out as:
{{Tlx|Update|section}} comes out as:
{{Update|section}}
{| class="wikitable"
{{Warning|This does not seem to work right now —[[User:SamB|SamB]] ([[User talk:SamB|talk]]) 05:39, 19 February 2014 (UTC)}}
! Article
| {{Update|section|type=article|demospace=main|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|-
! Category
| {{Update|section|type=category|demospace=category|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|-
! Template
| {{Update|section|type=template|demospace=template|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|}


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]].

Revision as of 15:12, 19 February 2014

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||25 October 2024}}

To mark a section, use:

{{Update|section}}

To explain that the article now has inaccuracies, use |inaccurate=yes:

{{Update|inaccurate=yes}}

Example

{{Update|documentation}}

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

Article
Category
Template

{{Update|section}} comes out as:

Article
Category
Template

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

For factual inaccuracies, stronger wording is used and articles will be added to Category:Articles with obsolete information.

{{Update|inaccurate=yes}}

Alternatives

See also