Template:Outdated/doc: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
(-)
 
(clean up)
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{checkcat}}
{{Lua|Module:Unsubst}}
{{Lua|Module:Unsubst}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
===Usage===
== Usage ==
This template can be used to mark articles or sections with old or out-of-date information.
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:
To add the date when the tag was added, use:
: {{tlx|Outdated|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
: {{Tc|Outdated|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
To specify what parts of the article need updating, use the first unnamed parameter:
To specify what parts of the article need updating, use the first unnamed parameter:
: {{tlx|Outdated|<nowiki>Foo [[bar]] qux</nowiki>}}
: {{Tc|Outdated|<nowiki>Foo [[bar]] qux</nowiki>}}
To display the date of the last update, use the second unnamed parameter:
To display the date of the last update, use the second unnamed parameter:
: {{tlx|Outdated|{{!}}{{#time:j F Y|-1 month}}}}
: {{Tc|Outdated|{{!}}{{#time:j F Y|-1 month}}}}
To mark a section, use:
To mark a section, use:
: {{tlx|Outdated|section|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
: {{Tc|Outdated|section|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
To explain that the article now has inaccuracies, use {{para|inaccurate|yes}}:
To explain that the article now has inaccuracies, use {{para|inaccurate|yes}}:
: {{tlx|Outdated|2=inaccurate=yes}}
: {{Tc|Outdated|2=inaccurate=yes}}
To link to a particular section of the talk page where the update is being discussed, use {{para|talk|Section}} (or {{para|talksection|Section}}):
To link to a particular section of the talk page where the update is being discussed, use {{para|talk|Section}} (or {{para|talksection|Section}}):
: {{tlx|Outdated|2=talk=Section}}
: {{Tc|Outdated|2=talk=Section}}


===Example===
== Example ==
{{tlx|Outdated|documentation|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
{{Tc|Outdated|documentation|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
{{Outdated|documentation}}
{{Outdated|documentation}}


Line 35: Line 34:
|}
|}


{{tlx|Outdated|section}} produces:
{{Tc|Outdated|section}} produces:
{| class="wikitable"
{| class="wikitable"
! Article
! Article
Line 51: Line 50:
For factual inaccuracies, stronger wording is used and articles will be added to [[:Category:Articles with obsolete information]].
For factual inaccuracies, stronger wording is used and articles will be added to [[:Category:Articles with obsolete information]].


{{tlx|Outdated|2=inaccurate=yes}}
{{Tc|Outdated|2=inaccurate=yes}}
{{Outdated|type=article|demospace=main|inaccurate=yes}}
{{Outdated|type=article|demospace=main|inaccurate=yes}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- ADD CATEGORIES BELOW THIS LINE  
| <!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Cleanup templates]]
[[Category:Cleanup templates]]
[[Category:Dispute templates]]
[[Category:Temporal templates]]
[[Category:Time and date maintenance templates]]
[[Category:Templates needing talk links and other improvements]] -->
}}</includeonly>
}}</includeonly>

Latest revision as of 21:14, 10 December 2015

This is a documentation subpage for Template:Outdated .
It contains usage information, categories and other content that is not part of the original template page.

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:

{{Outdated|date=May 2024}}

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

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

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

{{Outdated||6 April 2024}}

To mark a section, use:

{{Outdated|section|date=May 2024}}

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

{{Outdated|inaccurate=yes}}

To link to a particular section of the talk page where the update is being discussed, use |talk=Section (or |talksection=Section):

{{Outdated|talk=Section}}

Example

{{Outdated|documentation|date=May 2024}}

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

Article
Category
Template

{{Outdated|section}} produces:

Article
Category
Template

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

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

{{Outdated|inaccurate=yes}}