<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ADeprecated_code%2Fdoc</id>
	<title>Template:Deprecated code/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ADeprecated_code%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Deprecated_code/doc&amp;action=history"/>
	<updated>2026-04-20T12:39:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Deprecated_code/doc&amp;diff=36047&amp;oldid=prev</id>
		<title>imported&gt;SMcCandlish: /* Examples */ ce</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Deprecated_code/doc&amp;diff=36047&amp;oldid=prev"/>
		<updated>2020-12-27T16:07:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples: &lt;/span&gt; ce&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;
{{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 &amp;#039;&amp;#039;&amp;#039;{{tlx|dc}}&amp;#039;&amp;#039;&amp;#039; redirect) can be used to indicate, e.g. in template documentation or Wikipedia articles on things like HTML specifications, code that has been [[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 &amp;#039;&amp;#039;&amp;#039;{{tlx|dc2}}&amp;#039;&amp;#039;&amp;#039; (AKA &amp;#039;&amp;#039;&amp;#039;{{tlx|dcs}}&amp;#039;&amp;#039;&amp;#039;) 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 [[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 &amp;#039;&amp;#039;&amp;#039;{{tlx|dcr}}&amp;#039;&amp;#039;&amp;#039;)&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 &amp;#039;&amp;#039;&amp;#039;{{tlx|dc2}}&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;{{tlx|dcs}}&amp;#039;&amp;#039;&amp;#039;)&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;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{dcs|deprecated}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields: {{dcs|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>imported&gt;SMcCandlish</name></author>
	</entry>
</feed>