ଛାଞ୍ଚ:wikimedia language name/doc
ଦେଖଣା
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
[ସମ୍ପାଦନା]{{mediawiki language name|roa-rup}}
returns (from the #switch list):- Aromanian
{{mediawiki language name|zh}}
returns (from the #switch list):- Chinese
{{mediawiki language name|fr}}
returns (from the Wiktionary template):
Exceptions
[ସମ୍ପାଦନା]{{mediawiki language name|cmn}}
is not a Wikimedia language code, but returns (from the Wiktionary template) anyway:- Mandarin
{{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: