Template:Outdated/Doc: Difference between revisions

DoggoBit (talk | contribs)
DoggoBit (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
It is simply sufficient to include this template with no other information inside an outdated section or article. The following example will produce a very simple notice:
It is simply sufficient to include this template with no other information inside an outdated section or article. The following example will produce a very simple notice:


<pre>
{{code|lang=mediawiki|line=no|<nowiki>{{Outdated}}</nowiki>}}
{{Outdated}}
</pre>


{{Outdated|category=no}}
{{Outdated|category=no}}
Line 15: Line 13:
However, you are encouraged to, at the very least, provide the current month and date in order to keep track of ''how'' outdated a piece of information is; the month and year should suffice:
However, you are encouraged to, at the very least, provide the current month and date in order to keep track of ''how'' outdated a piece of information is; the month and year should suffice:


<pre>
{{code|lang=mediawiki|line=no|<nowiki>{{Outdated|date=July 2029}}</nowiki>}}
{{Outdated|date=July 2029}}
</pre>


{{Outdated|category=no|date=July 2029}}
{{Outdated|category=no|date=July 2029}}
Line 23: Line 19:
You are also encouraged to provide a reason for why a piece of information is outdated. For example, this section would be outdated because the syntax is not supported in the new version of MediaWiki:
You are also encouraged to provide a reason for why a piece of information is outdated. For example, this section would be outdated because the syntax is not supported in the new version of MediaWiki:


<pre>
{{code|lang=mediawiki|line=no|<nowiki>{{Outdated|reason=The syntax is no longer supported in new versions of MediaWiki.}}</nowiki>}}
{{Outdated|reason=The syntax is no longer supported in new versions of MediaWiki.}}
</pre>


{{Outdated|category=no|reason=The syntax is no longer supported in new versions of MediaWiki.}}
{{Outdated|category=no|reason=The syntax is no longer supported in new versions of MediaWiki.}}
Line 31: Line 25:
Finally, it might be that only a specific section, or a specific element of an article, is outdated. You can specify the scope of the outdated information:
Finally, it might be that only a specific section, or a specific element of an article, is outdated. You can specify the scope of the outdated information:


<pre>
{{code|lang=mediawiki|line=no|<nowiki>{{Outdated|scope=block of code}}</nowiki>}}
{{Outdated|scope=block of code}}
</pre>


{{Outdated|category=no|scope=block of code}}
{{Outdated|category=no|scope=block of code}}


==== Discussion link ====
==== Discussion link ====
{{Note|The talk page is linked through an external link: this is to avoid polluting [[Special:WantedPages]] when the talk page does not exist.}}


You can modify the notice's discussion link. For example, if you create a relevant section called ''No longer the case'' on a page's Talk page, you can link it so:
You can modify the notice's discussion link. For example, if you create a relevant section called ''No longer the case'' on a page's Talk page, you can link it so:


<pre>
{{code|lang=mediawiki|line=no|<nowiki>{{Outdated|talk=Talk:Example/No longer the case}}</nowiki>}}
{{Outdated|talk=Talk:Example/No longer the case}}
</pre>


{{Outdated|category=no|talk=Talk:Example/No longer the case}}
{{Outdated|category=no|talk=Talk:Example/No longer the case}}