Template:Glossary infobox/doc

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 for their layout as well as the corresponding lists of articles where they are transcluded, see  below.

Usage
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 parameter using the format provided below.

Required parameters

 * template name – this parameter adds a at the bottom of the glossary. Using template name 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