Module:Labels/documentation: Difference between revisions

From The Languages of David J. Peterson
Jump to navigation Jump to search
(Created page with "This module supports Module:labels/templates, which in turn is used by the template {{temp|label}}. See Module:labels/data and its submodules Module:labels/data/regi...")
 
m (Djpwikiadmin moved page Module:Labels/doc to Module:Labels/documentation)
(No difference)

Revision as of 20:01, 18 September 2023

This module supports Module:labels/templates, which in turn is used by the template {{label}}. See Module:labels/data and its submodules Module:labels/data/regional and Module:labels/data/topical for lists of defined labels, and for labels that are aliases (or "redirects") for other labels.

Many implementation details of this module are subject to change in the near future, so it should be considered under construction. This only affects the internals of the module and of the labels themselves, not the way it is used from within entries.

The module takes a list of labels and will process them as follows:

  1. If the label is listed in Module:labels/data or one of its submodules as an alias of another label, replace its name with the name it redirects to, and continue with the next steps.
  2. If the label is defined in Module:labels/data as a label, use that, as long as the label is not restricted to particular languages by the "language" or "languages" fields.
  3. Otherwise, just show the label's name unaltered.

Testcases

A label specific to "grc" (Ancient Greek)
code result
{{label|grc|Attic}} (Attic)
{{label|en|Attic}} (Attic)

Conflicts

The following labels are found in both Module:labels/data/regional and Module:labels/data/subvarieties. The label data in Module:labels/data/subvarieties overrides the data in Module:labels/data/regional. If you would like the data in Module:labels/data/regional to be used by {{label}}, please move it to Module:labels/data/subvarieties.

labels
  • African American Vernacular English
  • Akhmimic
  • Anglo-Norman
  • Ararat
  • Arvanitika
  • Australian English
  • Balhae
  • Balkar
  • Birmingham
  • Bohairic
  • Bokmål
  • Border Scots
  • Canadian English
  • Canadian spelling
  • Cantonese
  • Chakavian
  • Cham Albanian
  • Cockney
  • Cois Fharraige
  • Dari
  • De'kwana
  • Digor
  • East Anglian English
  • East Frisian
  • East Germanic
  • East Midlands English
  • East Palatine
  • East and West Flanders
  • Eastern Armenian
  • Eastern Catalan
  • Ecclesiastical Latin
  • Ekavian
  • European French
  • Fayyumic
  • Gan
  • Geordie
  • Gheg
  • Guardiol
  • Hakka
  • Hamburgisch
  • Hamshen
  • Helsinki slang
  • Hessian
  • Hulu Pahang
  • Ikavian
  • Indian English
  • Ingilo
  • Inner Mbugu
  • Inuktun
  • Inuttut
  • Irish English
  • Iron
  • Itivimuit
  • Kajkavian
  • Kansai
  • Karabakh
  • Karachay
  • Kromanti
  • Kölsch
  • Late Latin
  • Latin America
  • Louisiana French
  • Low Prussian
  • Lowlands Scots
  • Lycopolitan
  • Maastrichtian
  • Mecklenburgisch Low German
  • Medieval Hebrew
  • Medieval Latin
  • Midlands English
  • Min
  • Min Bei
  • Min Dong
  • Min Nan
  • Min Zhong
  • Mishnaic Hebrew
  • Mistralian
  • Mooring
  • Moselle Franconian
  • Multicultural London English
  • New Latin
  • New Zealand English
  • Non-Oxford British spelling
  • Normal Mbugu
  • North Germanic
  • Northern Dutch
  • Northern England English
  • Northern Finnic
  • Northwest Germanic
  • Nynorsk
  • Oxford British spelling
  • Oxyrhynchite
  • Palatine German
  • Pennsylvania Dutch English
  • Pomeranian Low German
  • Potteries
  • Puter
  • Ripuarian
  • Rumantsch Grischun
  • Sahidic
  • Scottish English
  • Shapsug
  • Shopski
  • Silla
  • Sistani
  • Skiri Pawnee
  • South African English
  • South Scots
  • Southern Dutch
  • Southern England English
  • Southern US English
  • Surmiran
  • Sursilvan
  • Sussex
  • Sutsilvan
  • Switzerland and Liechtenstein spelling
  • Tosk
  • Tyneside
  • Ulster Scots
  • Vallader
  • Vivaro-Alpine
  • West Arabian
  • West Country English
  • West Germanic
  • West Midlands English
  • Western Armenian
  • Western Catalan
  • Western Malayo-Polynesian
  • Western Pomeranian Low German
  • Western Samic
  • Wu
  • Xiang
  • Ye'kwana