Template:Glossary entry/doc

From MozillaWiki
Jump to: navigation, search
Edit-copy green.svg
This is a documentation subpage for Template:Glossary entry.
It contains usage information, categories and other content that is not part of the original template page.
Shortcuts
{{gloent}}
{{gloentry}}
{{glossaryentry}}

Usage

{{gloent}} lets you add a glossary/dictionary headword along with up to 10 definitions in one go. It is meant to make it easy for users to add new definitions to headwords, without loosing any formatting structure, and keeping the definitions collected and evenly spaced.

This template calls two other templates, {{glossary term}} and {{glossary definition}}.

Parameters

There are 13 parameters, of which none is strictly required. 11 of the parameters are unnamed, and 2 are named.

Syntax

The template's syntax is

  • {{gloent|headword |definition 1 |def. 2 |def. 3 |…|def. 10 |anchor=anchor name |list=yes }}

Optional parameters

1

Headword

The first unnamed parameter will be used as the headword (term/main 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.
  • Wiki markup can NOT be used!
Usage
  • {{gloent|1|2|3|…|10}}

2–11

Definition(s)

You can enter up to 10 definitions for the headword using the unnamed parameters 2 through 11.

Notes
  • Wiki markup can be used, but there might be templates and/or tags that break the code.
Usage
  • {{gloent|1|2|3|…|10}}

anchor

Anchor name

You can use this parameter to create an anchor for the headword in question.

Notes
  • The anchor name must be unique. It is recommended to use a simple, but descriptive name, e.g. the headword itself, if that isn't already used as a header or anchor elsewhere on the page.
Usage
  • {{gloent|1|2|3|…|10|anchor=anchor name}}

list

Displays definitions as an ordered list

Use this parameter to output the definitions as an ordered list. The list uses lower-case latin letters as bullets, aj.

Notes
  • You may call this parameter by setting it to any value; i.e. |list=yes will yield the same result as |list=whoopsadaisy.
Usage
  • {{gloent|1|2|3|…|10|list=yes}}

Examples

Case What you type What you see
Basic use headword|definition 1|definition 2|definition 3}}
headword
definition 1
definition 2
definition 3
10 definitions headword|You|can|add|up|to|ten|definitions|for|the|headword}}
headword
You
can
add
up
to
ten
definitions
for
the
headword.
Anchor headword|definition 1|definition 2|definition 3|anchor=headword}}
headword
definition 1
definition 2
definition 3
List headword|definition 1|definition 2|definition 3|list=yes}}
headword
  1. definition 1
  2. definition 2
  3. definition 3

See also