সাঁচ:Gloss
অৱয়ব
- 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. - applesnorkel
- Definition of term 1.
- arglefarst
- 1. Beginning of first definition of term 2
Conclusion of first definition of term 2.Block quotation in first definition of term 2.
- 2. Second definition of term 2.
- {{glossend}} – The other half of this template pair; uses
</dl>
to close the structured glossary definition list that {{gloss}} opens. - {{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)
Usage
[সম্পাদনা কৰক]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
[সম্পাদনা কৰক] The above documentation is transcluded from সাঁচ:Gloss/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |