Template:Glossary definition

From MozillaWiki
Jump to: navigation, search

{{{1}}}

Documentation icon Template documentation[view] [edit] [history] [purge]
Shortcuts
{{glodef}}
{{glossarydefinition}}

Usage

{{glodef}} is a front-end for the HTML element <dd>, which is used to delimit a word or expression entered as a glossary/dictionary definition.

Meant to be used in conjunction with {{glossary term}}. To enter both the term and the definition in one go, with the possibility to add multiple definitions, use the template {{glossary entry}}.

Parameters

There are 2 parameters, of which 1 is unnamed and required, and 1 is named and optional.

Syntax

The template's syntax is

  • {{glodef|glossary definition |rtl=yes }}

Required parameter

1

Glossary definition

Your definition of the headword.

Notes
  • Definitions should be as concise as possible, but still give a clear description of the headword's meaning and usage in a given context. If a headword appears within multiple word classes, the definition should indicate which of the headword's word classes it covers; for example: the word code can be used as a verb or a noun, so a definition of it should start with the word class that the definition covers, e.g. vb. or n..
Usage
  • {{glodef|1}}

Optional parameter

rtl

Forces text direction to flow right-to-left
Notes
  • You may call this parameter by setting it to any value; i.e. |rtl=yes will yield the same result as |rtl=whoopsadaisy.
Usage
  • {{glodef|1|rtl=yes}}

Examples

Case What you type What you see
Basic use definition}}
definition
rtl تعريف|rtl=yes}}
تعريف
With {{glossary term}} headword}}
{{glodef|definition}}
headword
definition

See also

  • {{glossary entry}}: combines {{glossary term}} and {{glossary definition}} in a single template.