Zum Inhalt springen

Modul:labels/data/Doku

Vun Wiktionary

Dies ist die Dokumentationsseite für Modul:labels/data

This module contains the data used by Module:labels and, by extension, the templates {{context}} and {{label}}. It lists all recognised labels along with other information. Two tables are exported at once, one named "labels" and another named "aliases".

Labels

[ännern]

Labels are the actual labels, and contain all the data associated with them.

The following values are supported:

display
The wikitext to display for the label. If this is omitted, the displayed text will default to the label's name.
plain_categories
A list of categories that this label should add to a page. Note that this does not support language-specific categories.
topical_categories
A list of topical categories that this label should add to a page. These categories are of the form "(language code):Category name". For example, Category:en:Physics.
pos_categories
A list of part-of-speech-like categories that this label should add to a page. These categories are of the form "(language name) category name". For example, Category:English archaic terms.
regional_categories
A list of regional/dialect categories that this label should add to a page. These categories are of the form "Category name (language name)". For example, Category:British English.

Aliases

[ännern]

Aliases are not labels, but work like redirects to proper labels. When a label is defined here, it "behaves" as if it were the label it "redirects" to. For example, if "American" is listed as an alias of "US", then whenever the label "American" is used in an entry, it's treated as if the label "US" had been used in its place.

Double aliases (an alias of another alias) are not supported, and will cause a script error if used.