Template:LangToWiki: Difference between revisions
+→See also: {{LangToIw}} |
m 8 revisions imported from meta:Template:LangToWiki: import |
(No difference)
|
Latest revision as of 23:25, 22 January 2024
en
Template documentation
This template returns the Wikidata interwiki identifier which matches with interface language or the given language code.
Returns the Wikidata interwiki identifier string, from interface language or given language code.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language code | 1 | no description
| String | suggested |
Examples
{{langToWiki}}
givesen
{{langToWiki|pt}}
givespt
{{langToWiki|pt-br}}
givespt
{{langToWiki|zh-hans}}
giveszh
{{langToWiki|nan}}
giveszh_min_nan
{{langToWiki|wikidata}}
giveswikidata
(not a language){{langToWiki|abcdef}}
givesabcdef
(not a language)
See also
- {{LangToIw}} which gives interwiki prefix (instead of Wikidata site identifier) and uses page language as default (instead of interface language).