• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Glossary infobox

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

This is a back-end template for table-based glossary templates that are transcluded into (i.e., displayed) in relevant articles. For examples of glossary templates that use {{Glossary infobox}} for their layout as well as the corresponding lists of articles where they are transcluded, see #Example glossaries that use this template below.

Contents

  • 1 Usage
    • 1.1 Template parameters
      • 1.1.1 Required parameters
      • 1.1.2 Optional parameters
  • 2 Example glossaries that use this template
  • 3 See also
Example of a {{Glossary infobox}}-based glossary
  • First term – definition of the first term goes here
  • Second term – definition of the second term goes here
  • Third term – definition of the third term goes here
  • Fourth term – definition of the fourth term goes here
  •  ...
  • nth term – definition of the nth term goes here
  • v
  • t
  • e

Usage

Shortcut
  • {{Infobox glossary}}

To use this template, copy/paste the following into a glossary template page; replace the comment in the header parameter with the desired header for the glossary and add a set of terms and their definitions in the definitions parameter using the format provided below.

{{Glossary infobox
| template name = {{subst:PAGENAME}}
| align         = {{{align|right}}}
| width         = {{{width|400px}}}
| collapse      = {{{collapse|}}}
| header        = <!--Replace this text with the desired header for the glossary-->
| definitions   = 
* '''[[First term]]''' – definition of the first term goes here
* '''[[Second term]]''' – definition of the second term goes here
* '''[[Third term]]''' – definition of the third term goes here
* '''[[Fourth term]]''' – definition of the fourth term goes here
* ...
* '''[[nth term]]''' – definition of the nth term goes here
}}

Template parameters

Required parameters

  • |template name= – this parameter adds a {{navbar}} at the bottom of the glossary. Using |template name={{subst:PAGENAME}} will automatically set this parameter to the correct page; alternatively, this can be set manually by setting the template page name without the "Template:" prefix as the input for |template name=.
  • |header= or |above= – either of these parameters can be used to add a header for the glossary.
  • |definitions= or |data1= – either of these parameters can be used to add a set of terms and their corresponding definitions; the format for this list of definitions is included in the sample template code above.

Optional parameters

  • |align= – this parameter sets the alignment of the glossary in an article. The only accepted inputs for this parameter are "left" and "right". The default is "right" if this parameter is omitted.
  • |width= – this parameter is used to specify the width of the glossary infobox in pixels. When setting the width, "px" must be added to the end of the inputted value. The default is "400px" if this parameter is omitted.
  • |collapse= – this parameter is used to collapse the glossary whenever |collapse= is set to "true", "yes, "y", or any other value that produces "yes" in Template:Yesno. If this parameter is omitted, the glossary can't be collapsed in articles on a case-by-case basis.

Example glossaries that use this template

  • Template:Addiction glossary – list of articles that transclude this glossary
  • Template:Transcription factor glossary – list of articles that transclude this glossary

See also

  • Wikipedia:Manual of Style/Glossaries § Bullet-style
  • Wikipedia:Manual of Style/Glossaries § Embedded glossaries
The above documentation is transcluded from Template:Glossary infobox/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://moasspedia.org/w/index.php?title=Template:Glossary_infobox&oldid=17617"
Category:
  • Glossary templates
Last edited on 16 February 2018, at 06:06

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 16 February 2018, at 06:06.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop