• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Glossary term

  • Template
  • Talk
  • Language
  • Watch
  • Edit
(Redirected from User:Mathglot/sandbox/Templates/Glossary term)
The Wikipedia Glossary has an entry for Glossary term.
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Sister project/styles.css

Contents

  • 1 Usage
  • 2 Examples
  • 3 Limitations
    • 3.1 [] - square brackets
  • 4 TemplateData
  • 5 See also

Usage

edit

The default behavior of this template is to display a boxed string "The Wikipedia Glossary has an entry for" with a link to the entry at Wikipedia:Glossary with the same name as the Wikipedia page on which it appears.

This template takes up to two optional parameters which will alter the expression used to link to the Glossary.

  • {{Glossary term |alternative term link |different display text, if desired}}

Examples

edit

1. {{Glossary term |1=Hatnote |2=hat note}}

produces:
The Wikipedia Glossary has an entry for hat note.

2. {{Glossary term |1=Three-revert rule |2=three revert rule}}

produces:
The Wikipedia Glossary has an entry for three revert rule.

3. {{Glossary term |Watchlist |Watch list}}

produces:
The Wikipedia Glossary has an entry for Watch list.

Limitations

edit

[] - square brackets

edit
  • You cannot use square brackets ("[" and "]") in the first parameter.

To resolve this use "[" and "]" instead:

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Glossary term in articles based on its TemplateData.

TemplateData for Glossary term

Creates a small box with links to an entry at Wikipedia:Glossary.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Entry name1

The name of the expression in the Glossary. The article's page name is used as a default. Square brackets <code>&#91;</code> and <code>&#93;</code> need to be coded as <code>&amp;#91;</code> and <code>&amp;#93;</code> instead.

Stringoptional
Displayed name2

Optional displayed link text.

Stringoptional

See also

edit
  • {{glossary}}, {{glossary end}}, {{term}} and {{defn}}, the glossary structure templates
  • {{dfn}} the more general <dfn> template
  • {{glossary link}}, for creating in-line, structured links to particular entries in topical glossaries
The above documentation is transcluded from Template:Glossary term/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Glossary_term&oldid=1236084251"
Last edited on 22 July 2024, at 20:31

Languages

    • တႆး
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 22 July 2024, at 20:31 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop