(veurbeeld)


De volgende dokumentatsie steet op Vörlaag:context/Doku. [bewark]

Use this template, as described in Wiktionary:Context labels:

  1. To label senses with restricted usage
  2. To label senses with grammatical information, in addition to that in the part-of-speech heading and headword line

This template uses Module:labels as a back-end. A list of all recognised labels can be found at Module:labels/data.

A label is placed before the definition, such as:

# {{context|en|AU|slang}} An [[insidious]] person.
  1. (AU, slang) An insidious person.

This template provides consistency. The same visual result could be achieved with simpler formatting; however, context helps to ensure that the same labels are used across the project. For instance, {{context|en|math}} and {{context|en|maths}} both produce the same result, expanding to (mathematics).

Use of a context label also provides automatic categorization. For instance, the example above is categorized as Australian English and Slang. Likewise, any page with a context of math or maths will be automatically placed in category Mathematics. However, these templates should not be used merely for categorization. It is still preferable to list a [[Category: ]] when there is no specific context for a term.

Regions are meant to indicate where a term is used, not to specify location of an entity. For instance, the Sphinx in Giza should not be labeled Egypt. Rather, that's part of the definition. Also note that time and space are not contexts. The word “week” is understood to mean seven days whether one is discussing war or widgets or the weather, in speech or song or storybook.

Examples

ännern

Some examples to demonstrate the range of current functionality:

  • A single ad hoc context with no supporting template:
    • {{en|context|foobarbazbip}}(foobarbazbip)
  • A single context with supporting template (for categorization and custom label-text):
  • Multiple contexts (up to about nine), with or without supporting templates:
  • Multiple contexts, with special built-in separator pseudo-contexts that replace the comma:
    • {{context|en|foobar|,|bazbip}}(foobar, ,, bazbip)
    • {{context|en|foobar|_|bazbip}}(foobar, _, bazbip)
    • {{context|en|foobar|_|bazbip|slang}}(foobar, _, bazbip, slang)
    • {{context|en|foobar|or|bazbip}}(foobar, or, bazbip)
    • {{context|en|foobar|and|bazbip}}(foobar, and, bazbip)
    • {{context|en|foobar|and|bazbip|or|Australia}}(foobar, and, bazbip, or, Australia)
    • {{context|en|Australia|or|foobar}}(Australia, or, foobar)
  • Qualifier/modifier pseudo-contexts whose supporting templates suppress following comma (by adding a _ parameter):
    • {{context|en|chiefly|foobar}}(chiefly, foobar)
    • {{context|en|of a|person}}(of a, person)
  • If you're wondering what happens when a separator pseudo-context is first, last, or adjacent to another one:
    • {{en|context|,}}     {{context|en|,|a}}     {{context|en|a|,}}     →     (,)     (,, a)     (a, ,)
    • {{context|en|_}}     {{context|en|_|a}}     {{context|en|a|_}}     →     (_)     (_, a)     (a, _)
    • {{context|en|or}}     {{context|en|or|a}}     {{context|en|a|or}}     →     (or)     (or, a)     (a, or)
    • {{context|en|and}}     {{context|en|and|a}}     {{context|en|a|and}}     →     (and)     (and, a)     (a, and)
    • {{context|en|a|,|,|b}}     {{context|en|a|,|_|b}}     {{context|en|a|,|or|b}}     →     (a, ,, ,, b)     (a, ,, _, b)     (a, ,, or, b)
    • {{context|en|a|_|,|b}}     {{context|en|a|_|_|b}}     {{context|en|a|_|or|b}}     →     (a, _, ,, b)     (a, _, _, b)     (a, _, or, b)
    • {{context|en|a|and|,|b}}     {{context|en|a|and|_|b}}     {{context|en|a|and|or|b}}     →     (a, and, ,, b)     (a, and, _, b)     (a, and, or, b)
    • Special cases with _:
      • {{context|en|chiefly}}(chiefly)
      • {{context|en|of a|or|about a}}(of a, or, about a)

See also

ännern