Template:Update after: Difference between revisions

From Vigyanwiki
Template>Rick Block
(→‎Usage: add note about "comment=")
m (150 revisions imported from alpha:Template:Update_after)
 
(99 intermediate revisions by 37 users not shown)
Line 1: Line 1:
<includeonly><!--
{{SAFESUBST:<noinclude />#invoke:Unsubst||$B=<!--


   ##### param 1 is the year
   ##### param 1 is the year
Line 5: Line 5:
   ##### param 3 is the day of the month
   ##### param 3 is the day of the month
   ##### optional param 4 is the category
   ##### optional param 4 is the category
  ##### optional named parameter reason= changes the tooltip text


--><!--
-->{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }} >
  ##### The next line is the tooltip #####
   {{JULIANDAY| {{{1|{{CURRENTYEAR}}-1}}} | {{{2|{{CURRENTMONTH}}}}} | {{{3|{{CURRENTDAY}}}}} + {{{delay|0}}} }}  
--><sup title="The text in the vicinity of this tag needs to be updated on [[{{{1}}}-{{{2}}}-{{{3}}}]]."  <!--
|{{update inline span
  ##### The next line causes the message to not appear when printed #####
  |date={{#if:{{{1|}}}|{{#if:{{{2|}}}|{{MONTHNAME|{{{2}}}}}|January}} {{{1}}}}}
-->class="noprint"><!--
  |text = {{{text|}}}
   ##### Next line shows up on day pages  #####
  |reason={{{reason|The text near this tag is dated.}}}
-->[[Wikipedia:Updating information/{{{1}}}/{{{2}}}/{{{3}}}|<s />]]<!--
}}{{#if:{{{4|}}}|{{main other|[[Category:{{{4}}}]]}}}}|{{{text|}}}{{main other|[[Category:Wikipedia articles scheduled for update tagging]]}}
  ##### Next line shows up on month pages #####
  }}}}{{#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>
-->[[Wikipedia:Updating information/{{{1}}}/{{{2}}}|<s />]]<!--
{{Documentation}}
  ##### Next line shows up on year pages  #####
<!-- Add categories and inter-wikis to the /doc subpage, please, not here! -->
-->[[Wikipedia:Updating information/{{{1}}}|<s />]]<!--
  ##### This section causes the message to appear in the text, with specified date offset. #####
-->{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }} >=
  {{JULIANDAY| {{{1}}} | {{{2}}} | {{{3}}} }} + 0  <!--
  ##### (Change 0 above to 1, 7, or 31 to cause the msg to appear a day, week, or month late) #####
-->|&#91;[[Wikipedia:Updating information|''update needed'']]&#93;}}<!--
  ##### This section causes the category to appear at the specfied time, if someone edits (or maybe views) the page. #####
-->{{#if:{{{4|}}}|{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }} >=
  {{JULIANDAY| {{{1}}} | {{{2}}} | {{{3}}} }} + 0  <!--
  ##### (Change 0 above to 1, 7, or 31 to cause the category to appear a day, week, or month late) #####
-->|[[Category:{{{4}}}|{{PAGENAME}}]]}}}}<!--
--></sup></includeonly><noinclude><!--
  ##### The next line is our documentation sample #####
--><sup>&#91;''[[Wikipedia:Updating information|update needed]]''&#93;</sup>
 
 
== Usage ==
This template shows the <sup>[''[[Wikipedia:Updating information|update needed]]'']</sup> note shown above, but the note becomes visible only on a particular (future) date.  The date is specified as a year, followed by a month (1-12), followed by a day, for example '''<nowiki>{{update after|2008|11|4}}</nowiki>''' for [[November 4]], [[2008]].  An optional 4th parameter is for a category for the article to be put into on the specified date, although the page probably needs to be viewed before this occurs.  An example of this would be '''<nowiki>{{update after|2008|11|4|United States Government articles in need of update}}</nowiki>'''.  Please consider adding a comment at the top of the article to direct editors to the section which needs updating.  If the nature of the needed update might not be clear, this should be mentioned also by adding a "comment=" parameter.  An example of this might be '''<nowiki>{{update after|2008|11|4|comment=Someone other than George Bush was elected president on this day.}}</nowiki>'''.
 
Please read [[Wikipedia:Avoid statements that will date quickly]]; use [[template:update after|update after]] only in exceptional cases.  Do not use [[template:update after|update after]] on pages which simply need to be reviewed later to see if they might need updating. It should only be used when there is a '''100% probability''' that an update is needed.  Do not use this template on [[Help:talk page|talk page]]s.  It is probably not necessary to use this template on frequently edited articles such as for current events.  Never add this template referring to the current day or any date in the past.  Do not use this template within section headers.
 
Go to [[Wikipedia:Updating information]] for a list of pages currently needing updates.  See [[Wikipedia talk:Updating information]] for links to future years, if you're curious about what has been linked but has not yet expired.
 
==Related templates==
* [[Template:Update]] can be used to mark an entire article or section needing to be updated.
* [[Template:Out of date]] is used to mark an article whose factual accuracy may be compromised due to out of date information.
 
== History ==
This template partially replaces the '''<nowiki>[[As of nnnn]]</nowiki>''' convention.  These pages have multiple problems, such as being in the encyclopedic namespace, frequently not being used correctly or consistently, and editors often unnecessarily torture the prose in order to use it.  This template resolves these problems, since the update warning only appears after an indicated future date, does not appear when a page is printed, does not require artificially linking any text in the article, and the mechanism only works properly for future dates.<!-- This paragraph can be removed after all [[As of]] pages are gone -->
 
== Discussion ==
Developmental discussion is at [[Wikipedia talk:As of#Template:Update after]]. 
 
== Notes for future reference ==
* The <sup>[''[[Wikipedia:Updating information|update needed]]'']</sup> message currently appears on the day specified, but does not need to; as a cosmetic issue with regards to non-editors, the template can be modified to show this at a later day than the date on which the article is scheduled to be updated.  Specifically, it may be desirable to have the message not appear until the next day or so, to give update editors a chance to update the page before readers see the notice.
* The same applies to the category; it can be made to appear a day or so later.
* A [[Template:Review after]] template will probably be created later, once [[Template:Update after]] appears to be working satisfactorily.
[[Category:Wikipedia maintenance templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 13:35, 2 February 2023

[needs update]

Template documentation