Template:Gloss/doc: Difference between revisions

Jump to navigation Jump to search
m (1 revision)
 
 
Line 4: Line 4:
== {{#ifeq:{{BASEPAGENAME}}|Gloss|Usage|[[Template:Gloss]]}} ==
== {{#ifeq:{{BASEPAGENAME}}|Gloss|Usage|[[Template:Gloss]]}} ==
{{#ifeq:{{BASEPAGENAME}}|Gloss|<!--nothing-->|{{collapse top|heading=Usage|left=y}} }}
{{#ifeq:{{BASEPAGENAME}}|Gloss|<!--nothing-->|{{collapse top|heading=Usage|left=y}} }}
The template {{tlx|gloss}} is used with {{tlx|glossend}} to explicitly bracket a glossary or glossary-like description list (also called a definition list or association list), especially in a [[Wikipedia:Manual of Style/Glossaries|template-structured glossary]], although such lists can be used more generally. This is ''required'' for template=structured glossaries, and is good practice anywhere description/definition lists are used for glossaries.  The template pair invoke the {{tag|dl}} ''description list'' [[HTML Element#Lists|HTML element]]. Unfortunately, the {{tnull|dl}} mnemonic is not available as a redirect as of this writing.
The template {{tlx|gloss}} is used with {{tlx|glossend}} to explicitly bracket a glossary or glossary-like description list (also called a definition list or association list), especially in a [[Sarkarverse:Manual of Style/Glossaries|template-structured glossary]], although such lists can be used more generally. This is ''required'' for template=structured glossaries, and is good practice anywhere description/definition lists are used for glossaries.  The template pair invoke the {{tag|dl}} ''description list'' [[HTML Element#Lists|HTML element]]. Unfortunately, the {{tnull|dl}} mnemonic is not available as a redirect as of this writing.


The pair of templates incidentally prevent Wikipedia's [[MediaWiki]] software engine from auto-creating redundant definition list code ({{tag|dl}}) around terms and definitions if they have blank lines between them, as they often do, especially in non-structured glossaries.
The pair of templates incidentally prevent Sarkarverse's [[MediaWiki]] software engine from auto-creating redundant definition list code ({{tag|dl}}) around terms and definitions if they have blank lines between them, as they often do, especially in non-structured glossaries.


Typical usage:
Typical usage:
14,061

edits

Navigation menu