সাঁচ:Gloss

অসমীয়া ৱিকিপিডিয়াৰ পৰা

Usage[সম্পাদনা কৰক]

  1. 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.
  2. 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:

==A–M==
{{gloss}}
{{term|applesnorkel}}
{{defn|1=Definition of term 1.}}
{{term|''arglefarst''|arglefarst}}
{{defn|1=
1. Beginning of first definition of term 2
<blockquote>Block quotation in first definition of term 2.</blockquote>
Conclusion of first definition of term 2.
}}

{{defn|1=2. Second definition of term 2.}}
{{glossend}}

A–M
applesnorkel
Definition of term 1.
arglefarst
1. Beginning of first definition of term 2

Block quotation in first definition of term 2.

Conclusion of first definition of term 2.
2. Second definition of term 2.

See also[সম্পাদনা কৰক]

  • {{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)