Template:UpdateNeeded: Difference between revisions
m Protected "Template:UpdateNeeded" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
m add summary line |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><sup>[<i>[[Template:UpdateNeeded/why-is-this-here|<span title="{{#invoke:string|replace|source={{{reason|The date of the event predicted near this tag may have passed.}}}{{#if:{{{date|}}}| ({{{date}}})}}}}">update needed</span>]]</i>]</sup></includeonly> | <includeonly><sup>[<i>[[Template:UpdateNeeded/why-is-this-here|<span title="{{#invoke:string|replace|source={{{reason|The date of the event predicted near this tag may have passed.}}}{{#if:{{{date|}}}| ({{{date}}})}}}}">update needed</span>]]</i>]</sup></includeonly><noinclude>{{Hatnote|Based on Wikipedia's {{wplink|Template:Update_inline|update inline template}}}} | ||
<noinclude>{{Hatnote|Based on Wikipedia's {{wplink|Template:Update_inline|update inline template}}}} | Use this template to indicate a portion of an article is need of an update. | ||
==Usage== | ==Usage== | ||
Add the <code><nowiki>{{UpdateNeeded}}</nowiki></code> (or <code><nowiki>{{Update needed}}</nowiki></code> equivalently) template after a statement to add a note that it needs updating. | Add the <code><nowiki>{{UpdateNeeded}}</nowiki></code> (or <code><nowiki>{{Update needed}}</nowiki></code> equivalently) template after a statement to add a note that it needs updating. | ||
Consider adding a reason and date to help contributors understand what needs to change. These will appear if you hover over the update needed notice. | Consider adding a reason and date to help contributors understand what needs to change. These will appear if you hover over the update needed notice. | ||
==Examples== | |||
Some examples of template usage | |||
{| class="wikitable" | {| class="wikitable" | ||
! Example !! Result | ! Example !! Result | ||
Line 13: | Line 15: | ||
| some statement<code><nowiki>{{UpdateNeeded|reason=Did this come true?|date=Feb 2025}}</nowiki></code> || some statement{{UpdateNeeded|reason=Did this come true?|date=Feb 2025}} | | some statement<code><nowiki>{{UpdateNeeded|reason=Did this come true?|date=Feb 2025}}</nowiki></code> || some statement{{UpdateNeeded|reason=Did this come true?|date=Feb 2025}} | ||
|} | |} | ||
== Template data == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 33: | Line 35: | ||
"date", | "date", | ||
"reason" | "reason" | ||
] | ], | ||
"description": "The parameters accepted by this temlpate." | |||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Inline cleanup templates]] | [[Category:Inline cleanup templates]] | ||
</noinclude> | </noinclude> |