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)
Template>Scott McNay
(Imported Rick's template)
Line 1: Line 1:
<includeonly><sup title="The text in the vicinity of this tag needs to be updated in 2007." class="noprint">{{#ifexpr:
<includeonly>{{
  ({{CURRENTYEAR}} < 2007) |
<!-- optional param 2 is the month number -->
<noinclude>[[Template:Update 2007|*]]</noinclude>|
<!-- optional param 3 is the day -->
&#91;[[Wikipedia:Updating information|''update needed'']]&#93;<noinclude>{{{category|[[Category:Update in 2007|{{PAGENAME}}]]
#if: {{{3|}}} | <!--
}}}</noinclude> }}</sup></includeonly><noinclude>
 
---- month and day both given ----
 
--><sup title="The text in the vicinity of this tag needs to be updated after {{{1}}}/{{{2|}}}/{{{3|}}}." class="noprint"> {{
#ifexpr: ({{CURRENTYEAR}} > {{{1}}}) or ( {{CURRENTYEAR}} = {{{1}}} and {{CURRENTMONTH}} > {{{2|}}} ) or ( {{CURRENTYEAR}} = {{{1}}} and {{CURRENTMONTH}} = {{{2|}}} and {{CURRENTDAY}} >= {{{3|}}} ) |
&#91;[[Wikipedia:Updating information|''update needed'']]&#93;[[Category:Update after {{{1}}}/{{{2|}}}/{{{3|}}}|{{PAGENAME}}]] |
[[Wikipedia:Update needed after {{{1}}}/{{{2|}}}/{{{3|}}}| ]]}} </sup> | {{
#if: {{{2|}}} | <!--
 
----  given a month, but no day ----
 
--><sup title="The text in the vicinity of this tag needs to be updated after {{{1}}}/{{{2|}}}."  class="noprint"> {{
#ifexpr: ({{CURRENTYEAR}} > {{{1}}}) or ( {{CURRENTYEAR}} = {{{1}}} and {{CURRENTMONTH}} >= {{{2|}}} ) |
&#91;[[Wikipedia:Updating information|''update needed'']]&#93;[[Category:Update after {{{1}}}/{{{2|}}}|{{PAGENAME}}]] |
[[Wikipedia:Update needed after {{{1}}}/{{{2|}}}| ]]}}</sup> | <!--
 
---- not given a month or a day ----
 
--><sup title="The text in the vicinity of this tag needs to be updated in {{{1}}}." class="noprint">{{
#ifexpr: ({{CURRENTYEAR}} >= {{{1}}}) |
&#91;[[Wikipedia:Updating information|''update needed'']]&#93; [[Category:Update after {{{1}}}|{{PAGENAME}}]] |
[[Wikipedia:Update needed in {{{1}}}| ]]}}</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]].
(THIS TEMPLATE IS UNDER DEVELOPMENT)
 
This template is used for marking places in Wikipedia entries which need to be updated later.  For a list of all articles using this template, see [[http://en.wikipedia.org/wiki/Special:Whatlinkshere/{{FULLPAGENAMEE}} What links here]].  Lists by year and by month can be found by checking [[Wikipedia:Updating information]].  Articles in need of updating are added to categories the next time they're edited when the update is indicated to be needed.


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.
Use of this template should not be an excuse for your laziness!  Please read [[Wikipedia:Avoid statements that will date quickly]], and use this template only when there is no reasonable way around it.


This template is intended as a replacement for the [[As of]] technique, which violates Wikipedia convention by linking text to administrative material.
To use, simply put <nowiki>{{Update after|year|month|day}}</nowiki> after the item which should be updated, much as you would a footnote.  The template should follow any footnote marks or similar stuff and should be adjacent to white space.  Year should be replaced by the 4-digit year in which the item should be updated and must be included.  A month number (1-12) and day number are optional parameters, so the date can be just a year, or a year and a month, or a specific day.


For discussion:
This template is intended as a replacement for the [[As of]] technique, which violates Wikipedia convention by linking text to administrative material, amd has other problems.
# Need to also create a "Review xxxx" template.
# 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".
# 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''.


Discussion is at [[Wikipedia talk:As of#Template:Update nnnn]]
Discussion is at [[Wikipedia talk:As of#Template:Update after]]
</noinclude>
</noinclude>

Revision as of 10:41, 5 August 2006


(THIS TEMPLATE IS UNDER DEVELOPMENT)

This template is used for marking places in Wikipedia entries which need to be updated later. For a list of all articles using this template, see [What links here]. Lists by year and by month can be found by checking Wikipedia:Updating information. Articles in need of updating are added to categories the next time they're edited when the update is indicated to be needed.

Use of this template should not be an excuse for your laziness! Please read Wikipedia:Avoid statements that will date quickly, and use this template only when there is no reasonable way around it.

To use, simply put {{Update after|year|month|day}} after the item which should be updated, much as you would a footnote. The template should follow any footnote marks or similar stuff and should be adjacent to white space. Year should be replaced by the 4-digit year in which the item should be updated and must be included. A month number (1-12) and day number are optional parameters, so the date can be just a year, or a year and a month, or a specific day.

This template is intended as a replacement for the As of technique, which violates Wikipedia convention by linking text to administrative material, amd has other problems.

Discussion is at Wikipedia talk:As of#Template:Update after