Template:Term/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" |
||
Line 3:
=={{#ifeq:{{BASEPAGENAME}}|Term|Usage|[[Template:Term]]}}==
{{#ifeq:{{BASEPAGENAME}}|Term|<!--nothing-->|{{collapse top|heading=Usage|left=y}} }}
The template {{tlx|term}} is used in [[Wikipedia:Manual of Style/Glossaries|template-structured glossaries]] to create terms to be defined, that are properly structured, have [[Separation of presentation and content|semantic value]], and can be linked to as if independent sections. It is a wrapper for {{tag|dt}}, the ''description list term'' [[Wikipedia:HTML element#Lists|HTML element]]. The template has a mnemonic redirect at {{tlx|dt}}.
Basic usage:
Line 274:
|{{fake heading|Technical details|sub=3}} }}
What this template does on the technical level is wrap the {{var|term}} in the {{tag|dfn}} [[Wikipedia:HTML element]] to semantically mark the term as the {{em|defining instance}} on the page of the defined term, and puts this marked-up content inside a {{tag|dt}} ''term'' element of a {{tag|dl}} description list (a.k.a. definition list, association list; the list is generated by the {{tlx|glossary}} and {{tlx|glossary end}} templates), and gives CSS <code>class="glossary"</code> to the {{tag|dt|o}} element. That class isn't doing anything yet, but it could later, like a slight font size increase.
{{#ifeq:{{BASEPAGENAME}}|Term|
| |||