Difference between revisions of "Template:Deprecated code/doc"
Jump to navigation
Jump to search
imported>SMcCandlish (note) |
imported>SMcCandlish (update) |
||
| Line 11: | Line 11: | ||
*{{para|class}} assign a CSS class | *{{para|class}} assign a CSS class | ||
*{{para|id}} assign an HTML ID for #linking and other purposes (must be unique on the page and start with an alphabetic letter) | *{{para|id}} assign an HTML ID for #linking and other purposes (must be unique on the page and start with an alphabetic letter) | ||
| − | *{{para|style}} add additional CSS styling (can be used to add <code>text-decoration:strikethrough;</code> back in if you want that formatting) | + | *{{para|style}} add additional CSS styling (can be used to add <code>text-decoration:strikethrough;</code> back in if you want that formatting; a shortcut for this is {{tlx|dc2}}) |
== See also == | == See also == | ||
Revision as of 20:31, 4 February 2012
| 40px | This is a documentation subpage for Template:Deprecated code. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template can be used to indicate, e.g. in template documentation or Wikipedia articles on things like HTML specifications, code that has been deprecated and should not normally be used. On the technical level it is a CSS-styled <del>...</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 removed that element's usual strike-through rendering, which makes the content hard to read.
Parameters
|1=the content to be marked as deprecated|2=or|title=a mouse-over "tooltip" (in some browsers, anyway), e.g. for briefly explaining the deprecation, e.g. "Deprecated since HTML 3.0" or "Breaks infobox formatting"|red=ymade the text red instead of grey, for indicating dangerous not just deprecated things|class=assign a CSS class|id=assign an HTML ID for #linking and other purposes (must be unique on the page and start with an alphabetic letter)|style=add additional CSS styling (can be used to addtext-decoration:strikethrough;back in if you want that formatting; a shortcut for this is{{dc2}})
See also
- {{!xt}} and related templates for indicating good, bad and deprecated examples in guidelines, how-tos and template documentation
- Core semantic markup templates
Template:Semantic templates see also