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" | ||
! 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]]. | ||
==Alternatives== | ==Alternatives== |
Revision as of 17:07, 11 January 2013
This is a documentation subpage for Template:Update. It may contain usage information, categories and other content that is not part of the original template page. |
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as the standard installation of Twinkle adds and removes this template. Thank you! |
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}}
File:Ambox current red Asia Australia.svg | Parts of this template (those related to documentation) need to be updated. Please update this template to reflect recent events or newly available information. |
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
- If there is a dispute about the need for an update, an out-of-date article or section can be marked with {{Out of date}}.
- {{Update after}} is an alternative for individual statements that will be out-of-date at a specifiable future date. It is a more recent and preferred alternative to Wikipedia:As of. It also adds articles to Category:Wikipedia articles in need of updating.
- See Wikipedia:Template_messages/Cleanup#Time-sensitive for alternatives unrelated to out-of-date information.
See also
- {{Update inline}} - inline version
- {{Recentism}}
- {{Current}}
- {{Time-context}}
- {{When}}
- {{Updated}}
- {{As of}}
- {{Show by date}}
- {{Out of date}}
- {{Update section}}