Template:Update/doc: Difference between revisions

From Sarkarverse
Jump to navigation Jump to search
m (1 revision)
 
No edit summary
Line 2: Line 2:
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{Twinkle standard installation}}
{{Twinkle standard installation}}
{{lua |Module:Unsubst}}


==Usage==
==Usage==
Line 31: Line 32:
! Template
! Template
| {{Update|type=template|demospace=template|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{Update|type=template|demospace=template|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|}
{{Tlx|Update|section}} comes out as:
{| class="wikitable"
! 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}}}}
|}
|}


Line 45: Line 58:


==See also==
==See also==
* {{Tl|Update inline}} - inline version
* {{Tl|As of}}
* {{Tl|Current}}
* {{Tl|Recentism}}
* {{Tl|Recentism}}
* {{Tl|Current}}
* {{Tl|Show by date}}
* {{Tl|Time-context}}
* {{Tl|Time-context}}
* {{Tl|Update inline}} - inline version
* {{Tl|Updated}}
* {{Tl|When}}
* {{Tl|When}}
* {{Tl|Updated}}
* {{Tl|As of}}
* {{Tl|Show by date}}


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

Revision as of 12:13, 9 March 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=June 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||1 May 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