Template:Deprecated code/doc: Difference between revisions

Content deleted Content added
update
update
Line 1:
{{Documentation subpage|[[Template:Deprecated code]] ([[Template:Dc]]) and [[Template:Dc2]]}}
<!-- Categories and interwikis go at the bottom of this page. -->
 
== Usage ==
This template (easiest used from its {{tl|dc}} 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. 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 removedremoves that element's usual strikestrikethrough (CSS: "line-through") rendering, which makes the content hard to read. If you really want that line-through, use the {{tl|dc2}} variant, which is otherwise identical.
 
===Parameters===
Line 11:
*{{para|class}} &nbsp; assign a CSS class
*{{para|id}} &nbsp; assign an HTML ID for #linking and other purposes (must be unique on the page and start with an alphabetic letter)
*{{para|style}} &nbsp; add additional CSS styling (can be used to add <code>text-decoration:strikethroughline-through;</code> back in if you want that formatting; a shortcut for this is {{tlx|dc2}})
 
== See also ==