قالب:Glossary end

من أخبار المعرفة
[edit] Template-info.svg Template documentation

Usage

The template {{glossary}} (a.k.a. خطأ: لا توجد وحدة بهذا الاسم "Template link general". or خطأ: لا توجد وحدة بهذا الاسم "Template link general".) is used with {{glossary end}} to explicitly bracket a glossary or glossary-like description list (also called a definition list or association list), especially in a template-structured glossary, although such lists can be used more generally. This is required (as a technical matter) for template-structured glossaries, and is good practice anywhere description/definition lists are used for glossaries. The template pair invoke the <dl>...</dl> description list HTML element. Unfortunately, the "خطأ: لا توجد وحدة بهذا الاسم "Template link general"." 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 (<dl>...</dl>) around terms and definitions if they have blank lines between them, as they often do, especially in non-structured glossaries.

Typical usage:

خطأ: لا توجد وحدة بهذا الاسم "Template link general".
{{term|1=term}}
{{defn|1=Definition.}}
خطأ: لا توجد وحدة بهذا الاسم "Template link general".

Parameters

  • |id=   can be used to assign a one-word ID name to the glossary. This can be used as a #id link target, and could have other metadata uses.
  • |style=   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.
  • |class=   will pass one or more space-separate CSS classes on to <dl> element, in addition to the automatically included class glossary. There is rarely any reason to do this.

Examples

This shows both a very simple then a rather complex instance in a structured glossary (including an entry with a block quotation, using the glossary block quotation template, {{gbq}}):

==A&ndash;M==

{{glossary}}

{{term|1=applesnorkel}}
{{defn|1=Definition of term 1.}}

{{term|term=arglefarst |content=''{{lang|xx|arglefarst}}''{{anchor|argle-farst|argle farst}} }}
{{defn|no=1 |defn=Beginning of first definition of term 2
{{gbq|1=Block quotation in first definition of term 2.}}
Conclusion of first definition of term 2.
}}
{{defn|no=2 |defn=Second definition of term 2.}}

{{glossary end}}
A–M
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">applesnorkel
Definition of term 1.
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">arglefarstخطأ: لا توجد وحدة بهذا الاسم "anchor".
1.  Beginning of first definition of term 2

Block quotation in first definition of term 2.

خطأ: لا توجد وحدة بهذا الاسم "Check for unknown parameters". Conclusion of first definition of term 2.
2.  Second definition of term 2.

Scope

This family of templates, like the underlying definition list code, is primarily intended for definitional uses, but can have other applications. The HTML 4.01 Specification itself says:

Definition lists...generally consist of a series of term/definition pairs (although definition lists may have other applications). Thus, when advertising a product, one might use a definition list:

<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">Lower cost
The new version of this product costs significantly less than the previous one!
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">Easier to use
We've changed the product so that it's much easier to use!
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">Safe for kids
You can leave your kids alone in a room with this product and they won't get hurt (not a guarantee).
خطأ: لا توجد وحدة بهذا الاسم "Check for unknown parameters".

Thus, editors should feel free to use definition list markup as an alternative to bulleted or numbered lists when the material is well-suited to definition list presentation.

See also

خطأ: لا توجد وحدة بهذا الاسم "Navbar".
  • {{glossary}} a.k.a. {{gloss}} – Half of a template pair; uses <dl> with a class to open the structured glossary definition list that خطأ: لا توجد وحدة بهذا الاسم "Template link general". closes.
  • {{glossary end}} a.k.a. {{glossend}} – The other half of this template pair; uses </dl> to close the definition list that خطأ: لا توجد وحدة بهذا الاسم "Template link general". opens.
  • {{term}} – The glossary term to which the خطأ: لا توجد وحدة بهذا الاسم "Template link general". definition applies; a customized <dt> with a class and an embedded <dfn>.
  • {{defn}} – The definition that applies to the خطأ: لا توجد وحدة بهذا الاسم "Template link general".; uses <dd> with a class
  • {{ghat}} – a hatnote template properly formatted for the top of a خطأ: لا توجد وحدة بهذا الاسم "Template link general". definition
  • {{gbq}} a.k.a. {{gquote}} – a block quotation template properly formatted for inclusion in a خطأ: لا توجد وحدة بهذا الاسم "Template link general". definition
  • {{glossary link}} – meta-template for creating shortcut templates for linking to definitions in specific glossaries
  • Wikipedia:Manual of Style/Glossaries

خطأ: لا توجد وحدة بهذا الاسم "navbox top and bottom".

Flat
{{hlist}}
{{hlist |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "list".

{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
{{cslist}}
{{cslist |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "Cslist".

Bulleted and Ordered
{{bulleted list}}
{{bulleted list |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "list".

{{ordered list}}
{{Ordered list |list_style_type=lower-alpha |first |second ...}}

خطأ: لا توجد وحدة بهذا الاسم "list".

Unbulleted
{{unbulleted list}}
{{unbulleted list |item1 |item2 |......}}

خطأ: لا توجد وحدة بهذا الاسم "list".

{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
{{glossary}}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}} {{defn|first description}}
خطأ: لا توجد وحدة بهذا الاسم "Template link general". خطأ: لا توجد وحدة بهذا الاسم "Template link general".
خطأ: لا توجد وحدة بهذا الاسم "Template link general". خطأ: لا توجد وحدة بهذا الاسم "Template link general".
{{glossary end}}


<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">first term
first description
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">second term
second description
<dt class="glossary " id="خطأ: لا توجد وحدة بهذا الاسم "delink"." style="margin-top: 0.4em;">...
....
Other
{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowlist|
*item1
*item2
*...}}


Bad Title Example.png
  • item1
  • item2
  • ...
{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}

خطأ: لا توجد وحدة بهذا الاسم "Template wrapper".خطأ: لا توجد وحدة بهذا الاسم "Check for unknown parameters".

{{colored list}}
{{colored list |item1 |item2 |item3 ...}}

خطأ: لا توجد وحدة بهذا الاسم "Colored list".

خطأ: لا توجد وحدة بهذا الاسم "navbox top and bottom".