Template:Update after: Difference between revisions

From Vigyanwiki
Template>Scott McNay
(Rewrote parts of description)
m (150 revisions imported from alpha:Template:Update_after)
 
(137 intermediate revisions by 39 users not shown)
Line 1: Line 1:
<includeonly><sup title="The text in the vicinity of this tag needs to be updated in 2007." class="noprint">{{#ifexpr:
{{SAFESUBST:<noinclude />#invoke:Unsubst||$B=<!--
({{CURRENTYEAR}} < 2006) |
[[Template:As of 2007|*]]|
&#91;[[Wikipedia:Updating information|''Update needed'']]&#93;{{{category|[[Category:As of 2007|{{PAGENAME}}]]
}}}}}</sup></includeonly><noinclude>
----
This template is used for marking places in Wikipedia entries which need to be updated later.  For a list of all entries for the year which need updating, see [[{{SERVER}}{{SCRIPTPATH}}/index.php?title=Special:Whatlinkshere&target={{FULLPAGENAMEE}} What links here]].


See also [[Template:Review]].
  ##### param 1 is the year
  ##### param 2 is the month number
  ##### param 3 is the day of the month
  ##### optional param 4 is the category
  ##### optional named parameter reason= changes the tooltip text


To use, simply put <nowiki>{{Update nnnn}}</nowiki> after the item which should be updated, much as you would a footnote.  The template should follow any footnote marks or similar stuff.  ''Nnnn'' should be replaced by the year in which the item should be updated.
-->{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }} >
 
  {{JULIANDAY| {{{1|{{CURRENTYEAR}}-1}}} | {{{2|{{CURRENTMONTH}}}}} | {{{3|{{CURRENTDAY}}}}} + {{{delay|0}}} }}
This template is intended as a replacement for the [[As of]] technique, which violates Wikipedia convention by linking text to administrative material.
|{{update inline span
 
  |date={{#if:{{{1|}}}|{{#if:{{{2|}}}|{{MONTHNAME|{{{2}}}}}|January}} {{{1}}}}}
For discussion:
  |text = {{{text|}}}
# This template probably needs to be renamed to "Update xxxx" or "Review xxxx", or something similar, which sounds more natural than "As of xxxx" in this context.
  |reason={{{reason|The text near this tag is dated.}}}
# A marker is currently inserted in the text, so that editors can see that it's already marked, and will know where to look to find the area which needs review or updating.  Might want to make marker visible only to editors (people signed in), if possible.  This can be done if there's a magic word for the userID.  If the date is expired, the marker is replaced by a message, such as "update needed" or "review needed".
}}{{#if:{{{4|}}}|{{main other|[[Category:{{{4}}}]]}}}}|{{{text|}}}{{main other|[[Category:Wikipedia articles scheduled for update tagging]]}}
# Once tested and seems to do what is intended, need to see about updating the ''As of'' pages to announce this, and deprecate the use of ''As of''.
  }}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using update after template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Update after]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | delay | reason | text }}<noinclude>
 
{{Documentation}}
Discussion is at [[Wikipedia talk:As of#Demo template created]]
<!-- Add categories and inter-wikis to the /doc subpage, please, not here! -->
</noinclude>
</noinclude>

Latest revision as of 13:35, 2 February 2023

[needs update]

Template documentation