Template:Update after: Difference between revisions

From Vigyanwiki
Template>Scott McNay
m (moved Template:Update 2007 to Template:Update after: Per suggestion by Rick Block)
m (150 revisions imported from alpha:Template:Update_after)
 
(132 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}} < 2007) |
<noinclude>[[Template:Update 2007|*]]</noinclude>|
&#91;[[Wikipedia:Updating information|''update needed'']]&#93;<noinclude>{{{category|[[Category:Update in 2007|{{PAGENAME}}]]
}}}</noinclude> }}</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|}}}
# Need to also create a "Review xxxx" template.
  |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 current, the marker is replaced by "update 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#Template:Update nnnn]]
<!-- 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