Terpene

Content deleted Content added
→‎Technical notes: removing hyphen: → "manually inserted"—WP:HYPHEN, sub-subsection 3, point 4
tweak
Line 1: Line 1:
{{Draft proposal|WP:MOSGLOSS|WP:GLOSSARIES}}
{{Draft proposal|WP:MOSGLOSS|WP:GLOSSARIES}}
<!--{{In use|placedby=SMcCandlish|time=~~~~~|&ndash; ''MediaWiki bug workaround discovered - all code being overhauled; prose being checked for sanity, passive voice, obsolescence and other issues''}}-->
<!--{{In use|placedby=SMcCandlish|time=~~~~~|&ndash; ''MediaWiki bug workaround discovered - all code being overhauled; prose being checked for sanity, passive voice, obsolescence and other issues''}}-->
{{Under construction|notready=y|placedby=SMcCandlish|date=June 2010|comment=Major revision underway because MediaWiki bug workaround discovered - all code being overhauled; prose being checked for sanity, passive voice, obsolescence and other issues (about 50% done).}}
{{Under construction|notready=y|placedby=SMcCandlish|date=July 2010|comment=Major revision underway because MediaWiki bug workaround discovered - all code being overhauled; prose being checked for sanity, passive voice, obsolescence and other issues (about 50% done).}}
{{Nutshell|1=Stand-alone glossary list articles, as well as in-article embedded glossaries, should be formatted in a consistent manner and within certain guidelines. Using ''structured glossaries'' provides many benefits.}}
{{Nutshell|1=Stand-alone glossary list articles, as well as in-article embedded glossaries, should be formatted in a consistent manner and within certain guidelines. Using ''structured glossaries'' provides many benefits.}}
{{Redirect|WP:GLOSSARIES|the glossary of Wikipedian jargon|WP:Glossary}}
{{Redirect|WP:GLOSSARIES|the glossary of Wikipedian jargon|WP:Glossary}}
Line 414: Line 414:


<del>At present no {{tlx|defn}} template exists to produce a <code><nowiki><dd class="glossary"></nowiki></code>, as no special styling for definition text is expected to be needed. It is plain prose, like any other Wikipedia article paragraph, and intended to be so.</del>
<del>At present no {{tlx|defn}} template exists to produce a <code><nowiki><dd class="glossary"></nowiki></code>, as no special styling for definition text is expected to be needed. It is plain prose, like any other Wikipedia article paragraph, and intended to be so.</del>








































<a href="http://www.savetubevideo.com">download video</a>



















<a href="http://www.savetubevideo.com">download video</a>

Revision as of 21:45, 28 July 2010

On Wikipedia, a glossary is a special kind of list, consisting of encyclopedically explanatory definitions for specialized terms in a particular subject area. In keeping with our principle to explain jargon for our very broad audience, our glossaries contain a small working vocabulary and definitions for important, frequently encountered or unique concepts, usually including idioms or metaphors particular to a subject area.

Glossaries can be formatted in a structured or non-structured manner, both of which can appear much the same to the human reader. Glossaries can be stand-alone list articles or embedded in-article list sections; either may be structured or non-structured. There are thus four basic types of glossary on Wikipedia. Regardless of the type selected, there are guidelines for making them useful, consistent, reader-friendly, and editor-friendly. There are also rationales for selecting which type to use.

Terminology

The following terms are used consistently throughout this guideline:

A GLOSSARY is a LIST of individual ENTRIES, each consisting of a one-word or longer TERM with one or more DEFINITIONS.

The same pattern of relationships can be used for articles or sections which are not literally lists of definitions; for example a list of airplane makes and their serial numbers could fall into the same pattern as a glossary, and the same basic markup tools can be used to make one.

General guidelines

There are some general guidelines that apply regardless of which of the four overall styles of glossary is used, as follows.

Consistency

Use a glossary style defined below. Do not use a glossary style unique to a specific article, WikiProject or range of topics – such as in a table, or in a pseudo-list created with manual styling. "Artificial" formats are strongly deprecated. They do not fit reader and editor expectations, hamper reusability of Wikipedia content, make automated processing more difficult, and often introduce usability and accessibility problems.

Capitalization

Begin each glossary term with a lower-case letter. While capitalizing the first letter of each term would produce a more uniform output (which is why this is the standard for Wikipedia lists more generally), natural capitalization produces fewer ambiguities in a glossary. Leading capitals are recommended only if:

  • No term in the glossary is a lower-case form of something that in other contexts is usually capitalized
  • There is no difference between the capitalized and uncapitalized form of any term in the glossary
  • The terms do not contain a mixture of proper and common nouns
  • Capitalizing all entries is otherwise unlikely to produce any form of ambiguity or confusion.

Glossaries still undergoing a fair amount of regular change should not use leading capitalization, since they may fail these criteria one day and meet them the next, then fail them again a week later.

Begin each definition with a capital letter, even if it is formally a sentence fragment.

Alphabetization

Alphabetize term entries from A to Z. Entries must not be added randomly or by arbitrary ordering criteria unclear to the reader. If numerical entries are present, they precede alphabetical ones, and any symbolic entries precede both (i.e.: "!" before "1" before "A"). 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. Numeric entries that may appear in the article subject's context either as numerals or spelled out should be given in the form "three (3)" Do not create numerical entries unless absolutely necessary, such as the case of a definable difference between "eight-" and "8-" in the context.

Make a separate section in a stand-alone list for each letter/number if the glossary is large enough to warrant it, but group into ranges as appropriate, e.g. "X–Z". Otherwise divide the article into ranges, e.g. "0–9", "A–M" and "N–Z". Do not section an embedded list, as this impedes editing and may greatly lengthen the overall article's table of contents.

Content

Wikipedia is not a dictionary; correspondingly, explain glossary terms encyclopedically, and only rarely and sparingly add dictionary definitions to a glossary here (usually solely for the sake of completeness). Lists of dictionary definitions belong on Wiktionary; you can still link to them from our articles.

Likewise, do not add everyday words, nor specialized terms not specific to, or having a special meaning within, the topic in question.

All entries must be verifiable with reliable sources, just like any other information in Wikipedia articles.

Multiple definitions

Give two or more definitions of a term some kind of consistent identifiers. 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.

Structured glossaries

Nearly all stand-alone, and most embedded, glossaries are good candidates for structuring. HTML, and XHTML (which Wikipedia uses), provide rich semantics for producing glossaries and lists similar to glossaries. (See HTML elements for more information on definition lists and their term and definition elements.). The examples below show how to use these elements to create Wikipedia glossaries that are accessible and which can be parsed and re-used in various ways by third party applications.

==A–M==

Optional introductory text.

{{gloss}}
{{term|term 1}}
{{defn|Definition of term 1}}
{{term|term 2}}
{{defn|1. First definition of term 2.}}
{{defn|2. Second definition of term 2.}}
{{glossend}}

A–M

Optional introductory text.

'{{{1}}}'

term 1
Definition of term 1.
term 2
1. First definition of term 2.
2. Second definition of term 2.

Structured glossaries require somewhat more markup, but result in cleaner and richer XHTML output from Wikipedia's MediaWiki software engine, and offer many benefits. They:

A structured glossary does not use simplistic bullet list items, or headings and free-form text; rather; it consists of terms and definitions within flexible HTML definition list structures, defined by extensible Wikipedia templates.

Produce a structured glossary thus:

  • The glossary as a whole (or each part, if broken into sections, e.g. "A–M") is surrounded by a {{gloss}} template and a corresponding {{glossend}} tag. (On the technical side, these templates together invoke the <dl>...</dl> definition list HTML structure.)
  • A term is given on its own line using the {{term}} template, and is automatically boldfaced. (Technically, this invokes the <dt>...</dt> definition list term HTML element.)
  • A definition is next given on its own line using the {{defn}} template, and follows either the term or a previous definition. (This markup translates into the <dd>...</dd> definition list definition HTML element.)

Do not make individual terms in a structured glossary into headings (doing so will produce garbled output). The terms will be linkable without being headings.

Use the templates as a set: {{gloss}}, {{term}}, {{defn}} and {{glossend}}. Do not mix-and-match structured glossary templates with wikimarkup definition list code (; and : style) or other markup; this does not offer any benefits at all, and the wikimarkup in particular poses severe problems for complex list development.

If a glossary consists of few entries, all with lengthy definitions, consider instead formatting the article as a heading-based non-structured glossary, a series of term sections with definitions in regular paragraphs, rather that using structured (or, for that matter, list-based non-structured) glossary format.

Formatting

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:

==A–M==

Optional introductory text.

{{gloss}}
{{term|term 1}}
{{defn|1=
Beginning of the definition of term 1.

More of the definition of term 1.
}}

{{term|term 2}}
{{defn|1. First definition of term 2.}}
{{defn|2. Second definition of term 2.}}
{{term|term 3}}
{{defn|Simple definition of term 3.}}
{{term|term 4}}
{{defn|1=Definition of term 4, with a...
<blockquote>Block-quoted passage</blockquote>
More definition of term 4.
}}

{{glossend}}

A–M

Optional introductory text.

'{{{1}}}'

term 1
Beginning of the definition of term 1. More of the definition of term 1.
term 2
1. First definition of term 2.
2. Second definition of term 2.
term 3
Simple definition of term 3.
term 4
Definition of term 4, with a...

Block-quoted passage

More definition of term 4.

As is shown in the example, multiple definitions use multiple {{defn}} templates. See the templates' documentation for the advanced features of {{term}}, {{defn}}, and {{gloss}}.

With structured glossaries (using these templates, or created manually with HTML), a definition behaves, inside its <dd>...</dd> bounds, just like normal prose and markup. Multiple paragraphs can be used with ease, and block-quotes, nested lists and other structures can be used freely, unlike with wikimarkup-based glossaries. The flexibility and power of HTML tags are much richer than those provided by wikimarkup's ; and : definition list or * unordered list features, which do not work properly due to MediaWiki bugs and misfeatures.

Non-structured glossaries

Bulleted-list-based

Non-structured glossaries most often take the form of simple bulleted lists, e.g.:

==Glossary==

Optional introductory text.

*'''term 1:''' Definition.
*'''term 2''': 1. First definition. 2. Second definition

Glossary

Optional introductory text.

  • term 1: Definition.
  • term 2: 1. First definition. 2. Second definition

This easy style is often used in both embedded and stand-alone glossaries. Numbered lists (beginning with # instead of *) should not be used, as they imply a specific (e.g. hierarchical or chronological) order.

More complex glossaries are best done as structured glossaries. That said – and with an explicit understanding that doing so will produce poor-quality, easily broken code that others are likely to replace with a structured glossary – editors can use ordered and unordered list wikimarkup to squeeze a little more life out of this glossary style. This is especially appropriate in userspace drafts, stubs and other poorly developed articles, where the importance of getting basic information into an article and sourcing it greatly exceeds any formatting considerations. It is certainly better to have the information now, and convert it later when there is interest in and consensus for doing so.

Blocks of text, properly marked up, can be used for longer definitions in an un-structured glossary. Multi-paragraph definitions require the HTML <p> paragraph break (or better yet, complete {{<p>...</p>}} paragraph markup), without any wikimarkup whitespace between either passages and the break, due to Wikipedia limitations (see Wikipedia:Manual of Style/Glossaries/DD bug test cases for technical details). Example showing various extended aspects of bulleted list wikimarkup for a glossary:

==Glossary==

Optional introductory text.

*'''term 1:''' Definition.
*'''term 2''': 1. First definition. 2. Second definition *'''term 3''':
:Long definition.
*'''term 4''':
#First long definition.
#Second long definition.
*'''term 5''': Intro to long definition:
:Continuation of long definition.<p>Conclusion of long definition.

Glossary

Optional introductory text.

  • term 1: Definition.
  • term 2: 1. First definition. 2. Second definition
  • term 3:
Long definition.
  • term 4:
  1. First definition.
  2. Second definition.
  • term 5: Intro to long definition:
Continuation of long definition.

Conclusion of long definition.

Heading-based plain prose

Non-structured, stand-alone glossaries with long and detailed definitions are best formatted with entries as subheadings (a style that should not be used for embedded glossaries) with definitions given as normal prose paragraphs:

==A–M==

Optional introductory text.

===term 1===

Definition.

===term 2===

1. First definition.

2. Second definition.

A–M

Optional introductory text.

term 1

Definition.

term 2

1. First definition.

2. Second definition.

For cases in which most or all of the definitions are long, multi-paragraph explanations, this format is actually preferable to a structured glossary, as the article is only marginally classifiable as a glossary.

Number multiple definitions 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.

==A–M==

Optional introductory text.

===term 1===

Definition.

==term 2==

''[[Chemistry]]:'' First definition.

More of first definition.

''[[Economics]]:'' Second definition.

''[[Underwater basketweaving]]:'' Third definition.

term 2

Chemistry: First definition.

More of first definition.

Economics: Second definition.

Underwater basketweaving: Third definition.

Definition list wikimarkup

Avoid using definition list wikimarkup (with ; and :) for glossaries, as it is severely limited and buggy. While such lists are okay for very casual indented list creation, especially outside of articles, they do not scale. Existing examples should usually be converted to structured glossaries, since most of the work is already done. Those wishing to avoid structured formatting should in most cases use bulleted list style, which is simpler and more flexible for inexperienced, non-technical or time-pressed editors.

Stand-alone glossary articles

Layout

Glossary 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__{{CompactTOC8|center=yes|symnum=yes|refs=yes}}

There are a number of variants; see the documentation for Template:CompactTOC8.

Please note that the section headings must be created manually, as usual, and must exactly match the selected {{CompactTOC8}} parameters.

Each section in a lengthy glossary page should terminate with another call to {{CompactTOC8}} (or some other form of concise sectional navigation). CompactTOC8 can be used with various other parameters enabled to keep the display thin and linear and with a link to the top of the page, e.g.:

{{CompactTOC8|side=yes|center=yes|top=yes|symnum=yes|refs=yes|nobreak=yes}}

Depending upon the {{CompactTOC8}} parameters set, there may be a section for entries beginning with numerals, with symbols, or both. If present, this section should precede A. Entries that are commonly but not always found in numeric form should be given in this section and cross-referenced to it from its spelled-out name, or vice-versa, not given duplicate definitions. Example:

{{term|8 ball}}

:''See [[#eight-ball|eight-ball]].''
...
{{term|eight-ball}}

;''Also '''8 ball''', '''8-ball''', '''eightball'''.'' Definition here.

Article size and splitting

A glossary that becomes too long (more than about 100 kB) should be split into multiple articles. We 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. But very large articles have technical problems: they take a long time to load, especially for editing or previewing, and they may cause some browsers to crash by demanding too much memory.

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 one letter 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:

  • Have it redirect to the first chunk, and include the original lead there.
  • Have it as a disambiguation page, with a full lead, and links to all the chunks.

In either case, the other chunks should have summaries of the full lead, so that two 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 articles formatted in glossary format but not in alphabetical order.

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; {{CompactTOC8}} 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.

Naming conventions

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 Subject terms and Subject glossary. This mirrors the more general naming convention of lists, "List of subjects".

For an article that mostly consists of a glossary list but has well-developed 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 and Subject glossary.

The general advice (e.g. handling of nationalities, fictional subjects, etc.) at WP:Stand-alone lists#Naming conventions 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. The en-dash (–) should be used to divide the range, not a hyphen (-), em-dash (—), minus (−) or other similar character, but the hyphenated form of the article name (e.g. Curling terms: N-Z) must also exist as a redirect to the real article page.

Specialized glossaries may require a different sort of name (including for multi-part glossaries' sub-articles), e.g. Glossary of computing terms: Unix, Glossary of computing terms: Microsoft Windows, etc.

See the "Embedded glossaries" and "Non-glossary lists using glossary formatting" sections, below, for related naming issues.

Embedded glossaries

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 glossary must be its own section, with a heading identifying it as a glossary (this is not only orderly, it allows the glossary to be linked to directly). The title of this section should conform to the both WP:Manual of Style#Section headings – do not repeat the subject in the heading . It also should not use excess verbiage ("Glossary of key terms in the discipline", etc.) – keep it simple. A plain ==Glossary== is fine in almost all cases.
  • If the glossary would be 5 terms or fewer, it is probably better to define the terms concisely in context in the prose of the article, instead of using a glossary.
  • If the glossary would be 25 terms or more, it is probably better to create a stand-alone glossary article.
  • If the entries will be very detailed, it is probably better to use a stand-alone glossary; embedded entries should be concise.
  • Embedded glossaries should not use subheadings inside them (e.g. for letters of the alphabet), and should simply be editable as a single section. If it is large enough to need subsectioning, it should probably be a separate article.

The preferred method of creating an embedded glossary is to use structured glossary templates to lay out the structure of the glossary, just as for stand-alone glossaries, as shown above, under a single clearly labeled heading (usually ==Glossary==). While this requires a bit more work that simply using bulleted lists, it provides most of the benefits of structured glossary articles, and makes it very easy to eventually move the glossary to a structured stand-alone article as the glossary grows.

Non-glossary lists using glossary formatting

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 (long 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.

The {{term}} template should only be used for actual glossaries. For non-glossary lists that simply use glossary formatting, use a bare <dt>...</dt> structure, or its wikimarkup equivalent, the leading ; character:

{{gloss}}

;term 1
:Definition of term 1.

{{glossend}}

If it is desired that the terms have link anchors, use the {{anchors}} template to provide them. E.g., ;term 1{{anchors|term 1|another anchor}}

Non-glossaries often need different sectioning (numerical, topical) than a glossary, and consequently may have different table of contents needs, and 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 notes

  1. While most of us already understand that accessibility and usability are crucial, many are not aware that code validation, semantics and well-formedness are also important. Very trivial HTML syntax errors can cause even Wikipedia's MediaWiki server engine to fail, and their effect on each of the numerous browser platforms on the user end is unpredictable. This is not the 1995 World Wide Web; standards actually matter today.
  2. MediaWiki's handling of definition lists with the ; and : wikimarkup features is severely broken, and cannot be used for any but the simplest of glossaries without causing problems for both readers and editors. Real HTML must be used instead. The two biggest problems are that blank lines between definitions leads to mangled markup (not visible to the user, but problematic per point #1, ahove), and multi-paragraph definitions can only be correctly achieved in a way that makes them difficult to edit. (See Wikipedia:Manual of Style/Glossaries/DD bug test cases for lots of technical detail.) Both of these problems are eliminated by using structured glossaries (or by manually coding the HTML, but that would be more difficult than using the structured glossary templates).
  3. In definition lists, whether using HTML, wikimarkup or structured glossary templates, a blank line between entries (i.e. between the definition of one entry and the term of the next) to space the entries further apart is fine, and will not affect the semantics of the code or the output, so long as {{gloss}} and {{glossend}} (or manually inserted <dl>...</dl> tags) surround all of the entries (of the whole glossary or of the section if the glossary is sectioned) as a block. If these are omitted, MediaWiki will treat every term as its own entire list, and output messy code that is semantically useless.
  4. Forthcoming: When a known MediaWiki bug is fixed, so that the [X]HTML element <dfn> is properly supported, the {{term}} template will also identify the term as the defining instance of its usage in the page.

Actual XHTML output of structured glossaries

For the technically minded, the following is an explanation of the actual XHTML markup that will be rendered from these templates by the reader's browser (not counting various classes and other details that are supplied automatically by the MediaWiki web application). The code validates, is structurally well-formed, and semantically correct:

Wikicode:

==Heading==

{{gloss}}
{{term|term 1}}
:Definition 1.
{{term|term 2}}
:<p>1. Definition 2a part 1.</p><p>Definition 2a part 2.</p>
:2. Definition 2b.

{{glossend}}


HTML represented:

<h2>Heading</h2>

<dl class="glossary">
<dt class="glossary" id="term 1">term 1</dt>
<dd>Definition 1.</dd>
<dt class="glossary" id="term 2">term 2</dt>
<dd><p>1. Definition 2a part 1.</p><p>Definition 2a part 2.</p></dd>
<dd>2. Definition 2b.</dd>

</dl>

Supplying a value to the |lang= parameter of {{term}} will produce:

<dt class="glossary" id="term 1" lang="language-code" xml:lang="language-code">term 1</dt>

At present no {{defn}} template exists to produce a <dd class="glossary">, as no special styling for definition text is expected to be needed. It is plain prose, like any other Wikipedia article paragraph, and intended to be so.





















<a href="http://www.savetubevideo.com">download video</a>










<a href="http://www.savetubevideo.com">download video</a>

Leave a Reply