Difference between revisions of "Template:Obsolete"

From Sugar Labs
Jump to navigation Jump to search
(lighten background-color to make text more readable)
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellspacing=0 width=100% style="background-color: WhiteSmoke; border:2px black solid; "
+
<noinclude>The purpose of this template should be obvious: tag pages whose content is no longer valid and should not be used any further. Pages tagged with this will be included in the [[:Category:Obsolete]] and will display the contents of the page in a yellowish-color as a reminder for the whole (just in case there are links to subsections that fail to make the warning visible. It also removes the [Edit] links in the subsections to avoid further editions (although it does not protect the page).
|-
 
| style="padding: 0.5em; vertical-align: top;" |<span class="plainlinks">[http://wiki.sugarlabs.org/go/Category:Obsolete http://wiki.laptop.org/images/a/a9/542-stopicon.png]</span>
 
| style="padding-left: 1em;" | This page has been designated '''obsolete'''.<br>If you disagree with this designation, please explain why on [[{{TALKPAGENAME}}|its talk page]].{{#if:{{{1|}}}|<hr>{{{1}}}}}
 
|}<includeonly>[[Category:Obsolete|{{PAGENAME}}]]</includeonly><noinclude>
 
[[Category:Template]]
 
== Usage ==
 
  
Pages that include this template are considered obsolete in the wiki.
+
There's another related template '''[[Template:Dated]]''' which should be used for pages with stale or otherwise out-of-date information&mdash;but that in general just needs an update.
  
The template has one optional un-named parameter, that can be used to display a short reason or comment about the reason for obsolescence.
+
The template takes an extra (optional) parameter that can basically be any text and will be displayed right after the warning sign.
  
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
+
<pre>
<nowiki>{{</nowiki>{{PAGENAME}} | ''reason or comment'' <nowiki>}}</nowiki>
+
{{Obsolete | some text pointing to an [[alternative page]] or http://some.url or just text.}}
 +
</pre>
  
== Categories ==
+
[[Category:Template]][[Category:Page flagging template]]</noinclude>
 
+
<includeonly>
Pages tagged with this template will automatically be included in:
+
__NOEDITSECTION__
* [[:Category:Obsolete]]
+
[[Category:Obsolete]]</includeonly>
 
+
{| width=100%
[[Category:Page flagging template|Obsolete]]
+
|<div style="border-top:1px solid red; border-bottom:1px solid red; margin:0px; background-color:LightYellow;">
[[Category:Highlighting template|Obsolete]]
+
{| style="background-color:gold; color:red;" align="center"
[[Category:Templates using ParserFunctions]]
+
|-
 +
| [[Image:Stop hand.png|Stop hand.png]]
 +
| align="center" | <big>'''NOTE:'''</big><br>The content of this page is considered<br><big><font color="darkred">'''DEPRECATED and OBSOLETE'''</font></big><br>It is preserved for historical research, along with its [[{{TALKPAGENAME}}|talk page]].<br>{{#if:{{{1|}}}|<hr>{{{1}}}}}
 +
|}
 +
</div>
 +
<noinclude>
 +
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 07:39, 6 November 2020

The purpose of this template should be obvious: tag pages whose content is no longer valid and should not be used any further. Pages tagged with this will be included in the Category:Obsolete and will display the contents of the page in a yellowish-color as a reminder for the whole (just in case there are links to subsections that fail to make the warning visible. It also removes the [Edit] links in the subsections to avoid further editions (although it does not protect the page).

There's another related template Template:Dated which should be used for pages with stale or otherwise out-of-date information—but that in general just needs an update.

The template takes an extra (optional) parameter that can basically be any text and will be displayed right after the warning sign.

{{Obsolete | some text pointing to an [[alternative page]] or http://some.url or just text.}}
Stop hand.png NOTE:
The content of this page is considered
DEPRECATED and OBSOLETE
It is preserved for historical research, along with its talk page.