সাঁচ:Glossend
অৱয়ব
Usage
[সম্পাদনা কৰক]- The template {{gloss}} is used with {{glossend}} to explicitly bracket a glossary definition list, especially in a structured glossary, although they can be used more generally. This is required for structured glossaries, and is good practice anywhere definition lists are used for glossaries.
- The pair of templates incidentally prevent Wikipedia's MediaWiki software engine from auto-creating redundant definition list code (
<dl>...</dl>
) around terms and definitions if they have blank lines between them, as they often do, especially in non-structured glossaries.
Apply CSS styles to the glossary
[সম্পাদনা কৰক]The |style=
parameter will pass CSS styling on to the <dl>
element. I.e., this styles the definition list itself, as a container, not the individual terms and definitions with it. There is rarely any reason to do this.
Examples
[সম্পাদনা কৰক]This shows both a very simple and a rather complex instance in a structured glossary:
|
|
See also
[সম্পাদনা কৰক]- {{gloss}} – The other half of this template pair; uses
<dl>
with a class to open the structured glossary definition list that {{glossend}} closes.
- {{term}} – The glossary term to which the {{defn}} definition applies; a customized
<dt>
with a class and an embedded<dfn>
. - {{defn}} – The definition that applies to the {{term}}; uses
<dd>
with a class - WP:Manual of Style (glossaries)
The above documentation is transcluded from Template:Gloss/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |