Template:Dfn/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) m Text replacement - "[[WP:" to "[[Wikipedia:WP:" |
Caleb Cooper (talk | contribs) m Text replacement - "[[HTML" to "[[Wikipedia:HTML" |
||
| (One intermediate revision by the same user not shown) | |||
Line 5:
==Usage==
This template applies the [[Wikipedia:HTML element#Phrase elements|HTML phrase element]] <code><dfn></code> around the text given as the first parameter, the <var>term</var>, and, if the optional second <var>definition</var> parameter is present, applies a dotted underline (a common style throughout the Web for indicating a term with a definition feature) and a definition pop-up "[[tool tip]]" when cursor focus is on the term.
Without the second parameter, it does not do anything user-facing, and is just a form of meta-data that can be detected and acted upon by internal and external software (statistics-gathering bots, rich Web 2.0 applications, etc.), and can provide valuable contextual information to editors.
Line 22:
This template should not be used for marking up [[MOS:GLOSSARIES|glossary]] entries or links to them; see {{tl|term}} and {{tl|glossary link}} instead, respectively. Likewise, this template should not be used to mark up the bold-faced article subject in the lead; [it is anticipated that] another template, [name forthcoming, probably Template:Subject], is [to be created to be] used for this purpose, including the needed bold-facing and [perhaps] other markup and metadata features.
This is [[Wikipedia:Semantic HTML|semantic markup]], not simply presentational style, and has a particular, pre-defined meaning; do not misuse this template just to get its display effects. If the content being marked up is not suitable for the <code><dfn></code> element as defined by the W3C HTML specifications, then you should not use this template.
===Parameters===
| |||