Template:Dfn/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
m Text replacement - "[[Semantic HTML|" to "[[Wikipedia:Semantic HTML|"
m Text replacement - "[[HTML" to "[[Wikipedia:HTML"
 
Line 5:
 
==Usage==
This template applies the [[Wikipedia:HTML element#Phrase elements|HTML phrase element]] <code>&lt;dfn&gt;</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.