Template>Scott McNay |
|
(117 intermediate revisions by 39 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, 31, or 91 to cause the msg to appear a day, week, month, or season late) #####
| |
| -->|[[[Wikipedia:Updating information|''update needed'']]]}}<!--
| |
| ##### 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, 31, or 91 to cause the category to appear a day, week, month, or season late) #####
| |
| -->|[[Category:{{{4}}}|{{PAGENAME}}]]}}}}<!--
| |
| --></sup></includeonly><noinclude><!--
| |
| ##### The next line is our documentation sample #####
| |
| --><sup>[''[[Wikipedia:Updating information|update needed]]'']</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, optionally followed by a month (1-12), optionally followed by a day, for example '''<nowiki>{{update after|2008|11|4}}</nowiki>''' for [[November 4]], [[2008]]. If the day is not specified, the <sup>[''[[Wikipedia:Updating information|update needed]]'']</sup> indicator appears on the first day of the specified month. Similarly if neither month or day are specified, the indicator appears on the first day of the specified year.
| |
| | |
| Please read [[Wikipedia:Avoid statements that will date quickly]]; DO NOT use [[template:update after|update after]] in cases where it can be avoided. 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 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. NEVER add this template referring to the current day or any date in the past.
| |
| | |
| == 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 mangled 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, and does not require artifically linking any text in the article.<!-- This paragraph can be removed after all [[As of]] pages are gone -->
| |
| | |
| == Discussion ==
| |
| Developmental discussion is at [[Wikipedia talk:As of#Template:Update after]].
| |
| | |
| <!-- This section is CURRENTLY obsolete; it is left in just in case.
| |
| === Maintenance === | |
| Month pages can be created by simply putting <nowiki>{{Update after2|YYYY}}</nowiki> or <nowiki>{{subst:Update after2|YYYY}}</nowiki> on a page. Do not delete months until all requested updates on Day pages have been taken care of.
| |
| | |
| Day pages can be created by simply putting <nowiki>{{Update after3|YYYY|MM}}</nowiki> or <nowiki>{{subst:Update after3|YYYY|MM}}</nowiki> on a page. Do not delete days until all requested updates have been taken care of.
| |
| | |
| Don't create month pages more than a year ahead or day pages more than a month ahead; it's not necessary.
| |
| | |
| --> | |
| == Notes for future reference ==
| |
| * The <sup>[''[[Wikipedia:Updating information|update needed]]'']</sup> message ''and category'' currently appear on the first day of the year or month, but do not need to; as a cosmetic issue with regards to non-editors, the template can be modified to show this at a later time than the date on which the article is scheduled to be updated. Specifically, when a day is given, it may be desirable to have the message not appear until the next day, a week later when only a year and month are given, and a month or quarter later when only a year is given.
| |
| * If it is desired that the category message appear at a different time than the <sup>[''[[Wikipedia:Updating information|update needed]]'']</sup> message, an extra line can be added to the template to support this.
| |
| * Having the page be added to a category may turn out to be either unnecessary or annoying. In this case, ask [[User:Rick Block]] or another admin to remove the category from the template.
| |
| </noinclude> | | </noinclude> |