ទំព័រគំរូ:wikimedia language name/doc

ពីWiktionary

This template generates the name of any language from a Wikimedia language code; otherwise, from a Wiktionary language code.

Mechanics[កែប្រែ]

This template employs a #switch parser function with a list of codes that differ between Wikimedia and Wiktionary. If a code is not in this list, its name will be generated by the Wiktionary code template.

Usage[កែប្រែ]

Simply place the code as the only, first, unnamed parameter.

Examples[កែប្រែ]

Exceptions[កែប្រែ]

  • {{mediawiki language name|cmn}} is not a Wikimedia language code, but returns (from the Wiktionary template) anyway:
    Script error: The function "lookup_language" does not exist.
  • {{mediawiki language name|qwerty}} is not a Wikimedia language code nor it is in a Wiktionary language code template, so it returns a red link:
    Script error: The function "lookup_language" does not exist.