ଛାଞ୍ଚ:wikimedia language name
|bs=Bosnian |hr=Croatian |roa-rup=Aromanian |simple=Simple English |sr=Serbian |zh=Chinese |zh-min-nan=Min Nan |#default={{{{{1}}}}}
- The following documentation is located at Template:wikimedia language name/doc. [edit]
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: