Template:Deprecated code/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage|Template:Deprecated code (Template:Deprecated code) and Template:Dc2}} {{Template shortcut|dc}} <!-- Add categories where indicated at the bottom of thi..."
 
m Text replacement - "[[Deprecation" to "[[Wikipedia:Deprecation"
 
(3 intermediate revisions by the same user not shown)
Line 1:
{{Documentation subpage|[[Template:Deprecated code]] ([[Template:Dc]]) and [[Template:Dc2]]}}
{{Commons Import}}{{Template shortcut|dc}}
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
== Usage ==
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 "doesn't work", "don't do this", "bad code", "ignore", "option not available", etc.), and removes that element's usual strikethrough (CSS: "line-through") 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.
 
{{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}}.
 
===Parameters===