<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ADc2%2Fdoc</id>
	<title>Template:Dc2/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ADc2%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Dc2/doc&amp;action=history"/>
	<updated>2026-06-06T09:30:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Dc2/doc&amp;diff=13357&amp;oldid=prev</id>
		<title>Caleb Cooper: Text replacement - &quot;[[Deprecation&quot; to &quot;[[Wikipedia:Deprecation&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Dc2/doc&amp;diff=13357&amp;oldid=prev"/>
		<updated>2020-10-21T15:48:38Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;[[Deprecation&amp;quot; to &amp;quot;[[Wikipedia:Deprecation&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage|[[Template:Deprecated code]] ([[Template:Dc]]) and [[Template:Dc2]]}}&lt;br /&gt;
{{Commons Import}}&lt;br /&gt;
{{Template shortcut|dc}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
The {{tlx|deprecated code}} template (easiest used from its {{tlx|dc}} redirect) can be used to indicate, e.g. in template documentation or Wikipedia articles on things like HTML specifications, code that has been [[Wikipedia:Deprecation|deprecated]] and should not normally be used. It can also be used to indicate other deleted or deprecated material.  On the technical level it is a CSS-styled {{tag|del}} that greys out the text (the near-universal sign in computing and computing documentation for &amp;quot;doesn&amp;#039;t work&amp;quot;, &amp;quot;don&amp;#039;t do this&amp;quot;, &amp;quot;bad code&amp;quot;, &amp;quot;ignore&amp;quot;, &amp;quot;option not available&amp;quot;, etc.), and removes that element&amp;#039;s usual strikethrough (CSS: &amp;quot;line-through&amp;quot;) rendering, which makes the content hard to read. If you really want that line-through, use the {{tlx|dc2}} variant {{dc2|to do this}}; it is otherwise identical.&lt;br /&gt;
&lt;br /&gt;
{{strong|Note: This template does not apply a monospaced font.}} This is so that it can be used inside an existing code (or non-code) block and inherit its font style. If necessary, wrap the template in one of {{tag|code}} (source code), {{tag|kbd}} (example input), or {{tag|samp}} (example output) as [[Wikipedia:Semantic HTML|semantically]] appropriate.  If you want monospace without semantic markup like {{tag|code|o}}, you can use the alternative templates {{tlx|mxtd}}: {{mxtd}}, or {{tlx|!mxt}}: {{!mxt}}.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
*{{para|1}} &amp;amp;nbsp; the content to be marked as deprecated&lt;br /&gt;
*{{para|2}} or {{para|title}} a mouse-over &amp;quot;tooltip&amp;quot; (in some browsers, anyway), e.g. for briefly explaining the deprecation, e.g. &amp;quot;Deprecated since HTML 3.0&amp;quot; or &amp;quot;Breaks infobox formatting&amp;quot;&lt;br /&gt;
*{{para|red|y}} &amp;amp;nbsp; make the text red instead of grey, for indicating dangerous/error/forbidden things (a shortcut for this is {{tlx|dcr}})&lt;br /&gt;
*{{para|class}} &amp;amp;nbsp; assign a CSS class&lt;br /&gt;
*{{para|id}} &amp;amp;nbsp; assign an HTML ID for #linking and other purposes (must be unique on the page and start with an alphabetic letter)&lt;br /&gt;
*{{para|style}} &amp;amp;nbsp; add additional CSS styling (can be used to add {{code|lang=css|code=text-decoration:line-through;}} back in if you want that formatting; a shortcut for this is {{tlx|dc2}})&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{dc|deprecated}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields: {{dc|deprecated}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{dcr|deprecated}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields: {{dcr|deprecated}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{dc2|deprecated}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields: {{dc2|deprecated}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tlx|xtd}} and [[Template:Xt/see also|related templates]] for indicating deprecated, good, bad, and neutral examples in guidelines, how-tos, and template documentation.&lt;br /&gt;
** {{tlx|mxtd}} in this template group ({{mxtd|example output here}}) is an alternative to {{tlx|dc}}.&lt;br /&gt;
** {{tlx|!mxt}} in this template group ({{!mxt|example output here}}) is an alternative to {{tlx|dcr}}.&lt;br /&gt;
* {{tlx|strongbad}} – for introducing something as deprecated or issuing some other warning in documentation, e.g.: {{tlx|strongbad|Not for use in mainspace.}}&lt;br /&gt;
&lt;br /&gt;
{{Semantic markup templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Programming typing-aid templates]]&lt;br /&gt;
[[Category:Semantic markup templates]]&lt;br /&gt;
[[Category:Text color templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>