Jump to content

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

ពីWiktionary

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

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.

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

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.