GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — Wikipedia:Manual of Style/Glossaries - Wikipedia (Redirected from Wikipedia:MOSGLOSS) "WP:GLOSSARIES" redirects here. For the basic glossary of Wikipedia terms, see Help:Glossary. For the extended glossary of Wikipedian jargon, see WP:Glossary.
"MOS:GLOSS" redirects here. For the Manual of Style on representation of linguistic glosses, see Wikipedia:Manual of Style § Double or single.
On Wikipedia, a glossary is a special kind of list. Each glossary is an alphabetically arranged list of a subject's terms, with definitions. Each term is followed by one or more explanatory (encyclopedia-style) definitions. (For example, see Glossary of architecture). In order to explain jargon for Wikipedia's broad audience, each of its glossaries contains a working vocabulary and definitions for important concepts for a given subject area. A glossary usually includes a field's technical terms, jargon, idioms, and metaphors. Glossaries can be stand-alone list articles or embedded lists in sections of articles. Stand-alone glossaries are typically titled "Glossary of subject terms". A glossary within an article usually starts with the heading "Glossary". TerminologyEvery article on Wikipedia with a title in the form "Glossary of subject terms", or similar, is such a glossary, as are the glossary sections inside some articles. These are distinct from outlines, which are titled in the form "Outline of subject" and may also include definitions, but are organized as a hierarchy and use their own style of formatting not covered in this guideline. Glossary formatting, however, is not limited to only glossaries in the traditional sense. The underlying HTML description list markup is intended for groups of "terms and definitions, metadata topics and values, questions and answers, or any other groups of name–value data".[1] The following terms are used consistently throughout this guideline:
Glossary formatting stylesThere are three styles to choose from when creating a glossary: template-structured, bullet-style, subheading-style, and (deprecated) semicolon-and-colon-style. Template-structuredThere is a special set of templates used for formatting glossary content. The templates are:
Nearly all stand-alone, and most embedded, glossaries are good candidates for the template-structured format. Here's what the format looks like:
This formatting style produces cleaner and richer XHTML output from Wikipedia's MediaWiki software engine, and uses standard HTML elements specifically intended for glossary markup. It provides many benefits, and the syntax does not take long to learn. Glossaries using this style:
To produce a template-structured glossary, follow these simple steps:
Do not make individual terms in a template-structured glossary into headings. Doing so will produce garbled output. The terms will be linkable without being headings. Use the templates as a set, and do not mix-and-match glossary templates with wikimarkup description list code ( If a glossary consists of only a few entries, with lengthy definitions, consider instead formatting the article as a subheading-style glossary, in regular paragraphs. FormattingTemplate-structured glossaries use semantic, accessible markup that adheres to Web standards, for reasons detailed above. Some example code, showing various formatting options, as might appear in a stand-alone glossary article divided into sections by letter of the alphabet:
As is shown in the example, multiple definitions use multiple With template-structured (using these templates, or created manually with HTML), a definition behaves, inside its Multiple paragraphs can be created, as in regular prose, simply by introducing a blank line as shown in the example, or can be explicitly blocked out with Within a {{glossary}} {{Main|Hatnotes and other templates can't go here, inside the glossary list but before terms and definitions}} {{term|1=term A}} Such add-on content does not go inside the Bullet-styleFor a back-end template that is used to create embedded bullet-style glossaries for articles, see Template:Glossary infobox.
This is the simplest style used for glossaries. It is an application of a bulleted list. Example, with definitions next to terms:
This easy style is often used in embedded glossaries. Numbered lists (beginning with Complex glossaries are best done using template-structured format. Blocks of text, properly marked up, can be used for longer definitions. Multi-paragraph definitions require the HTML
Explicit * '''term A''' <p>Definition.</p> * '''term B''' <p>1. First definition.</p><p>2. Second definition.</p> * '''term C''' <p>Beginning of long definition.</p><p>Continuation of long definition.</p><p>Conclusion of long definition.</p> Remember to use the closing Don't mix-and-match this unordered list markup with that for ordered or definition lists, as the output will be invalid markup, and the visual formatting will not be consistent (ordered and unordered lists indent further). Compare:
The HTML output of this is a trainwreck, especially for visually impaired users of screen-reader software, who are told, in series, that: an unordered list of one item has started; that list has ended; a description list with no term but one unassigned definition has started; that list ended; another unordered list of one item started, and ended; another description list with no term but two definitions unrelated to a term started, then ended; a third unordered list of one item started, and ended; a numbered list of two items, unassociated with the above material, started and ended; a fourth unordered list of one item started, then an embedded unordered list of two items started, then both ended. There is generally no clear relationship between any of the terms and definitions, or even a sense that this is one list of things that relate to each other in any way. Subheading-styleStand-alone glossaries with a limited number of mostly long and detailed definitions sometimes can be formatted best with entries as subheadings. One example of such a glossary is Glossary of ancient Roman religion. This style should not be used for embedded glossaries, as it will overwhelm the article's table of contents with glossary entries. It will also produce an overly-long ToC in a stand-alone glossary with a large number of entries. When this style is used, definitions are presented as normal prose paragraphs:
For cases in which most or all of the definitions are long, multi-paragraph explanations, this format is actually preferable to a template-structured glossary. Multiple definitions are numbered manually, as shown; do not use ordered lists. This glossary type especially sometimes uses non-numeric identifiers with multiple definitions. Multi-paragraph definitions are just like any other Wikipedia prose paragraphs.
Semicolon-and-colon-styleThe underlying This markup style is very "brittle" and not recommended for glossaries, except of the shortest and simplest sort, as they are likely to have their semantic structure broken. Even something as simple as a blank line will break such a list. (See § Avoid semicolon-and-colon wikimarkup for glossaries, below.)
General guidelines for writing glossariesThe following guidelines apply to all glossaries and should be followed regardless of which format style presented above is used. Wikipedia outlines, featuring entries with annotations in a hierarchical (classified) order, are not covered by these guidelines. AlphabetizeIn a glossary, alphabetize all the terms from A to Z. Entries must not be added randomly or in an arbitrary order. A Latin-based character with diacritics is alphabetized after the plain character it is based on. Non-Latin-based characters are alphabetized in order of their appearance in Unicode. If numeral entries are present, they precede verbal ones, and any symbolic entries precede both (i.e.: "!" before "1" before "A"). Numeric entries that sometimes appear in the article subject's context as either numerals or spelled out verbally should be given in the form "three (3)" in short glossaries. In longer ones, it is more appropriate to create separate entries, put the definition in one, and crossreference the other entry to that one; put the definition in the verbal not numeral entry in most cases. If there is a definable difference in usage between the numeral and verbal terms in the context, use separate entries and distinguish between them with crossreferences. If there are no symbolic and only one or a few numeral entries, it is permissible to alphabetize the numeral entries as if they were spelled out verbally, in the form "3 (three)", to avoid creation of a very short numeral entries section. Make a separate section (or subsection) in a long stand-alone glossary article for each letter, but group them into ranges when appropriate, e.g. "X–Z". For shorter stand-alone glossaries, you may divide the entire article into ranges, e.g. "0–9", "A–M" and "N–Z", or use no divisions at all for very short cases (which may be candidates for merging into main articles on the subject). Do not section an embedded list, as this impedes editing and may greatly lengthen the overall article's table of contents; if an embedded list is long enough that it would benefit from sectioning, it is a good candidate splitting into a separate stand-alone glossary article. Do not create empty sections. AlternativesGlossary formatting can be used for lists that are not strictly glossaries in the usual sense, and many of them will have non-alphabetic ordering rationales (e.g. chronological or geographical). Use natural capitalizationIn most glossaries, begin each glossary term with a lower-case letter, unless it is a proper name or an acronym/initialism. While capitalizing the first letter of each term would produce a more uniform, outline-like result (which is why this is the standard for ordered and unordered lists on Wikipedia), natural capitalization produces fewer ambiguities in a glossary. The use of leading capitals on all entries is recommended only if all of the following apply simultaneously:
Begin each definition with a capital letter, even if it is a sentence fragment. The above does not apply to the use of description lists (with or without glossary templates) for material that does not form a glossary, such as list of characters, or an index of different models in a series of products. What to includeWikipedia is not a dictionary; correspondingly, explain glossary terms descriptively (just like a regular encyclopedia article would do it, but more concisely). Only rarely and sparingly add dictionary definitions to a glossary on Wikipedia (usually solely for the sake of completeness). Lists of dictionary definitions belong on Wiktionary; you can still link to them from Wikipedia articles. Do not add everyday words. Include only specialized terms specific to or having a special meaning within the subject of the glossary. All entries must be verifiable with reliable sources, just like regular article content. The Wiktionary glossaries appendix project is likely to transwiki a copy of any glossary created on Wikipedia, and could considerably re-develop it in a more dictionarian direction. It is not necessary (and may be detrimental) to synchronize edits between the two versions, though it will be rare for an entry to be appropriate to exist at all in some form in only one version but not the other. The existence of a Wiktionary glossary on a topic that has a well-developed main article may be a good indication that an encyclopedic glossary on the subject may be developed, either using the dictionarian glossary as a base, or starting from scratch. If both versions do exist they should link to each other in their respective "See also" sections with a sister-project template, e.g. How to handle multiple variants of a termOne definition can actually have two or more terms above it as variations or alternatives with the same definition. The most common use case for this is presenting the term in two language variants. This is done with {{lang}} and the appropriate ISO language codes as described at that template. In template-structured glossaries, the bare term, without markup, must be the first parameter of {{term}}, and the language-markup version is parameter 2. If display of the language/dialect name is desired, {{term|1=tire |content={{langx|en-US|tire}}}} {{term|1=tyre |content={{langx|en-GB|tyre}}}} {{defn|1=A resilient wheel covering usually made of vulcanized rubber.}} Result:
The wikimarkup version is leaner, but has very limited functionality and cannot handle complex input: ;{{langx|en-US|tire}} ;{{langx|en-GB|tyre}} :A resilient wheel covering usually made of vulcanized rubber. How to handle multiple definitionsIn a Wikipedia article, use consistent identifiers for two or more definitions of a term. In most cases, multiple definitions should be numbered. Other conventions exist, such as identification of the sub-field to which each definition pertains, but these are rarely mutually exclusive with numbering, and numerical identification is a convenient mnemonic for readers and referent for editors. Because articles may use numbers to distinguish among multiple definitions, avoid changing the order of definitions without good reason, and correct numerical references to definitions when you do change their order. LinkingOutgoing linksWikilinks to other pages or sections should generally not be used within the term in a description list, whether formatted with glossary templates or not. The rationales at WP:Manual of Style § Section headings apply equally well to description list terms, as they serve the purposes of both subheadings and list content. In template-structured markup, terms are themselves link targets; not all browsers properly handle content marked up both as a link target and an outgoing link anchor. Linking from inside a term should especially be avoided in actual glossaries, where the term's entry should stand on its own within that context. If there is more in-depth material at another page for the term in question, link to the term inline, or use an explicit cross-reference to that material.
Links within definition content are created as appropriate just like in any other encyclopedic prose content. Incoming linksAnchors (points to which a link like Template-structured glossaries automatically (within certain limits) provide linkable terms (see Template:Term § Wiki-styling and linking of the term)), and anchors can also be created for specific definitions, using template parameters (Template:Defn § Making the definition independently linkable). Hatnotes, images, etc.In bullet- and subheading-style glossaries, Hatnotes like Hatnotes cannot be used at all with wikimarkup ( In template-structured glossaries, hatnotes, images, and other such content must be placed within the definition – not between term and definition, nor between the last definition and the next term. Other than this restriction, all such content can be used normally inside the definition block. You may find the indentation of hatnote templates awkward-looking within a definition; the glossary-specific generic hatnote template Avoid semicolon-and-colon wikimarkup for glossariesAvoid using description list wikimarkup (with Use the standard styles onlyUse a glossary style defined above, not your own made-up formatting, such as a pseudo-list created with manual styling, or misuse of a numbered (ordered) list. We have list-formatting standards for several reasons, and failure to follow them may confuse readers and editors, hamper reusability of Wikipedia content, make automated processing more difficult, and introduce usability and accessibility problems. In some cases, tables are better-suited to associating content than description lists, especially when there are multiple values for each item. Stand-alone glossary articlesLayoutGlossary articles are expected to satisfy the same conditions as other articles; this will include a well-developed lead section, and references. The default Wikipedia table of contents will not be very useful with most glossaries. One solution is: __NOTOC__{{Compact ToC|center=yes|symnum=yes|refs=yes}} or, if there are only alphabetical entries from A to Z, simply: __NOTOC__{{Compact ToC|center=yes|refs=yes}} There are a number of variants; see the documentation for Template:Compact ToC. Please note that the section headings must be created manually, as usual, and must exactly match the selected Each section in a lengthy glossary page should terminate with another call to {{Compact ToC|side=yes|center=yes|top=yes|symnum=yes|refs=yes|nobreak=yes}} Depending upon the {{term|1=20 Tanks}} {{defn|''See [[#Twenty Tanks|Twenty Tanks]].''}} ... {{term|1=Twenty Tanks}} {{defn|''Also '''20 Tanks'''.'' Twenty Tanks was an award-winning micro-brewery in San Francisco, California, and a sister enterprise to the Triple Rock brewery in Berkeley.}} Naming conventionsMain page: WP:Article titles
For a glossary list article that consists of a simple lead and a glossary, the form Glossary of subject terms is preferred, with redirects to it from Glossary of subject, Subject terms, Subject glossary, Subject terminology, Subject jargon, Subject slang, and List of subject terms (the last one to comply with the more general naming convention of lists pattern of "List of subjects"). For an article that mostly consists of a glossary list but has well-developed prose material on the history and use of the terminology, or other such information (several paragraphs worth), the form Subject terms is preferred, with redirects to it from Glossary of subject terms, Subject glossary and the other names (remember that reader cannot guess whether or not the article has been developed in this way). The links from the "glossary"-named redirects may go directly to the glossary section, if the historical and other material is lengthy. For an article that is mostly on the history, development, spread, etc. of the terminology as a body of a certain subject area's jargon (like legal, dance, etc., terminology generally), and may include an embedded glossary of key terms, prefer Subject terminology, again with all the redirects. It is reasonably likely that such an article will eventually split into a prose article and a stand-alone, more developed, glossary article over time. For a glossary of terms and characters used in a work or series of works of fiction (i.e. a fictional universe), the form Glossary of work/series/franchise name terminology is preferred (again with redirects) since the terms form a terminological system that does not exist as terms in use outside that fictional context. Example: Glossary of His Dark Materials terminology. The general advice at WP:Stand-alone lists#Naming conventions (e.g. handling of nationalities, fictional subjects, etc.) includes glossaries as well, to the extent applicable. The sub-articles of multi-page split glossaries should follow the guidelines at WP:Naming conventions (long lists) to the extent applicable. In short, they should be named as the original (main) glossary page, with the letter or range of covered letters of the alphabet (or numbers, etc.) following a colon after this title, e.g. Glossary of underwater basketweaving terms: A–M or Curling terms: N–Z. Per WP:Manual of Style#Dashes, the en-dash (–) is used to divide the range, not a hyphen (-), em-dash (—), minus (−) or other similar character; however, the hyphenated form of the article name (e.g. Curling terms: N-Z) must also exist as a redirect to the real article page (AnomieBOT will do this automatically). Type the en-dash in as Specialized glossaries may require a different sort of name (including for multi-part glossaries' sub-articles), e.g. Glossary of computing terms: Unix and Linux, Glossary of computing terms: Microsoft Windows, etc. See the "Embedded glossaries" and "Using glossary formatting in non-glossary lists" sections, below, for related naming issues. Article growth and splittingA glossary that becomes too long (more than about 400 KB)[a] should be split into multiple articles. This is a higher suggested limit than for normal articles, because we generally do not expect readers to work their way through a glossary from head to tail, so their length need not be limited by attention span, and a glossary's primary purpose is linking to specific entries and, crucially, in-page searching, which is broken by splitting. On the other hand, very large articles take a longer time to load, especially for editing or previewing. When necessary, glossaries should usually be split into roughly equal chunks, rather than attempting to convert to summary style, or thinning out by narrowing the subject of the glossary. For example, the first split of Glossary of underwater basketweaving terms could be into Glossary of underwater basketweaving terms: A–M and Glossary of underwater basketweaving terms: N–Z, but very long glossaries may need even more parts, and some glossaries will have some one letters' sections much longer than others. If there are terms beginning with numbers or symbols, they should go before A, in sections of their own, unless there are enough of them to warrant their own subarticle. There are two good solutions for the original Glossary of underwater basketweaving terms title:
In either case, the other chunks should have summaries of the full lead, so that multiple different leads do not evolve. The first method is simpler; the second is preferable for glossaries so long that they need more than three or four chunks, or list articles in glossary format but not in basic alphabetical order (bicycles by manufacturer, wars by year, etc.). Care is needed in dividing glossaries into subarticles. Each subarticle must link with the ones before and after, and to the disambiguation page if there is one; {{Compact ToC}} can help with this. Each sub-article must have its own references section, and these should be checked to be sure they still work. In particular, the first instance of a named <ref> tag in each subarticle will need its own text and cannot simply be a Embedded glossariesSee also: Template:Glossary infobox
A glossary included within an article may occasionally be helpful for readers, either to understand an article's terminology better, to learn more about the terminology used in a field covered by the article, or both. It may also provide a glossary that can be linked to from related articles, unless and until such time as a stand-alone glossary is warranted. Some guidelines on including glossaries within articles, in addition to the general guidelines above:
The preferred method of creating an embedded glossary is to use the template-structured style, and put the glossary under a single, clearly labeled heading (e.g. Using glossary formatting in non-glossary listsGlossary-style formatting is not limited to use in glossaries. There are other uses for the markup methods employed in glossaries. They can be used for data presentation purposes in other types of lists. For example, glossary-style formatting may work well for presenting a list of aircraft serial numbers along with their models and descriptions, using the same basic layout as glossaries. For an article that is a non-glossary list that uses glossary formatting, follow the advice at WP:Stand-alone lists#Naming conventions. For the naming of multi-page, split lists, see WP:Naming conventions (lists). Such lists sometimes need customized naming, if they are not naturally expressible as alphabetic or numeric ranges, e.g. List of automobiles: Chevrolet, List of automobiles: Ford, etc. Note, however, the standardized use of a colon, not a parenthetical, comma, dash, slash or other separator. However, when a natural-English descriptive phrase is available, this is usually preferred instead; the real articles corresponding to the previous examples are at List of Chevrolet vehicles and List of Ford vehicles. Non-glossaries often need different sectioning (numerical, topical) than a glossary, and consequently may have different table of contents needs. For multi-page long lists, each sub-article needs inter-page navigation of some kind to other articles in the series. Some solutions include specialized compact tables of contents and custom navigation templates. Such lists may also have different section ordering needs, e.g., by date in a list of events, instead of alphabetical. Technical notesThis section was last updated 10 June 2024, for MediaWiki version 1.43.0-wmf.8. The current version of MediaWiki used by en.Wikipedia is 1.48.0-wmf.3 (25f78be); if it is a .XX revision ahead, this material may need to be reviewed and, if necessary, updated, especially if Parsoid has finally replaced MW's Legacy Parser.
Actual HTML output of template-structured glossariesFor the technically minded, the following is an explanation of the actual HTML markup that will be rendered from the templates by the reader's browser (not counting various classes and other details that are supplied automatically by the MediaWiki web application, and with spacing cleaned up a little for human readability). The code validates, is structurally well-formed, and is semantically correct.
{{glossary}} {{term |term A}} {{defn |Definition 1.}} {{term |term B}} {{defn |no=1 |First definition start. <p>First definition conclusion.</p> }} {{defn |no=2 |Second definition.}} {{glossary end}}
<dl> <dt id="term_a"><dfn>term A</dfn></dt> <dd>Definition 1.</dd> <dt id="term_b"><dfn>term B</dfn></dt> <dd>1.  First definition start. <p>First definition conclusion.</p> </dd> <dd>2.  Second definition.</dd> </dl>
The result is the same if you put the entire {{defn|1. First definition start.<p>First definition conclusion.</p>}} That is to say, the following mixture of HTML markup and MediaWiki markup, trying to use simple whitespace to create a paragraph break, no longer works inside {{defn| 1. First definition start. First definition conclusion. }} The result will be run together in the output:
This behavior is consistent with MediWiki failing to auto-paragraph inside other inline-block elements, including Notes
See alsoThere are some other forms of quasi-navigational content-presentation pages on Wikipedia: | |||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |