Template:Glossary term/doc

From MozillaWiki
< Template:Glossary term
Revision as of 00:05, 10 February 2015 by Lakrits (talk | contribs) (Created page with "{{documentation subpage}} __NOTOC__ {| style="width: 8%; border-spacing: 2px; border: 1px solid #d7d3c8; border-collapse: collapse; margin-left: 20px; float: right;" |- ! styl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Edit-copy green.svg
This is a documentation subpage for Template:Glossary term.
It contains usage information, categories and other content that is not part of the original template page.
Shortcuts
{{gloterm}}
{{glossaryterm}}

Usage

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

Meant to be used in conjunction with {{glossary definition}}. 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

  • {{gloterm|glossary term |rtl=yes }}

Required parameter

1

Glossary term

Your headword entry.

Notes
  • Headwords should always be entered in lower-case, with the exception of proper nouns, words that use capital letters within them, and abbreviations/acronyms in or with capital letters.
Usage
  • {{gloterm|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
  • {{gloterm|1|rtl=yes}}

Examples

Case What you type What you see
Basic use {{gloterm|headword}}
headword
With |rtl {{gloterm|كلمة في القاموس|rtl=yes}}
كلمة في القاموس
With {{glossary definition}} {{gloterm|headword}}
{{glodef|definition}}
headword

definition

See also

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