Help:Glossaries

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎français • ‎日本語

Glossaries are very important to translators. They give accurate and polished definitions of terms that are used by an extension and by the associated documentation. By reading the glossary, a user can understand the different terms used and a translator can think about their equivalent in an other language than the one they are reading (on this wiki, mostly English).

That page lists best practices that should be used on glossaries on mediawiki.org.

Best practices[edit]

Glossaries must be easy to maintain, to translate and of course to read especially concerning accessibility.

Pages have to be made with a common design, that will help for future improvements. We will avoid to use templates which also need documentation, maintenance and are sometimes problematic concerning RTL/LTR translations.

Translatability must be possible and easy. Add terms that are not the equivalent of the official terms used of synonyms must be possible. Polish a term to use the best English is less useful than work on the definition itself. The definition is the most important thing because it will allow translators to find an equivalent and accurate term in their language.

Definitions are standardized by W3C as "descriptions lists[1]" or "definition lists[2]". MediaWiki implements definition lists. Use such definition lists will structure data a minima and increase accessibility.

When you create a glossary, sort terms the most important and used first. Alphabetical order in English will not be an alphabetical order in another language.

How to[edit]

Define a term[edit]

The most simple case is when you have a term and its definition:

;Term to define
:Definition

Rendered as

Term to define
Definition

Add synonyms[edit]

Synonyms[3] are terms that are not the official term, but that can be used by people or in certain cases. There is no standard to add synonyms to a definition list. We are using the best equivalent we have found: add a definition and label it as "also know as" and format it differently:

;Term to define
:''Also known as '''other term'''''
:Definition

Rendered as

Term to define
Also known as other term
Definition

The synonyms are identified by italics, synonyms terms are in bold to have a visual equivalent of the primary term. On text browsers, that will highlight the synonym.

It is possible to have multiples synonyms, separated by commas.

;Term to define
:''Also known as '''other term''', '''that equivalent''', '''synonym'''''
:Definition

Add a second definition[edit]

It is possible to add a second definition:

;Term to define
:Definition
:Other definition

Rendered as

Term to define
Definition
Other definition

However, have two definitions for one term may be source of confusion. Plus, one term in one language that have two meanings may need two separated terms in another language.

Mark for translation[edit]

See also: Help:Extension:Translate/Page translation exampleHelp:Extension:Translate/Page translation example

Translate tags will allow people to translate that page. All components must be translated.

;<translate>Term to define</translate>
:''<translate>Also known as '''other term''', '''that equivalent''', '''synonym'''</translate>''
:<translate>Definition</translate>

Translation for the synonyms line is done as one line, not as separated terms. That allows an easy translation for RTL languages and offer the opportunity to add other terms.

The following task is only possible when the page has been marked for translations:

To encourage translators to add words used in their language, each translation item related to synonyms (the "qqq" message) must be documented with Template:Adapt translation/coreTemplate:Adapt translation, which displays the following message:

Translation icon cropped.svg

Please adapt that translation to reflect terms in use in your language. Terms in English can be inspirational.

Notes[edit]