Template:LangToIw
en
Template documentation
This template returns the interwiki prefix which matches with page language or the given language code.
Returns the interwiki prefix string, from page language or given language code.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language code | 1 | no description
| String | suggested |
Examples
{{langToIw}}
givesen
{{langToIw|pt}}
givespt
{{langToIw|pt-br}}
givespt
{{langToIw|zh-hans}}
giveszh
{{langToIw|nan}}
giveszh-min-nan
{{langToIw|wikidata}}
giveswikidata
(not a language){{langToIw|abcdef}}
givesabcdef
(not a language)
See also
- {{LangToWiki}} which gives Wikidata site identifier (instead of interwiki prefix) and uses interface language as default (instead of page language).