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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Language code1

no description

Example
pt-br
Stringsuggested

Examples

  • {{langToIw}} gives en
  • {{langToIw|pt}} gives pt
  • {{langToIw|pt-br}} gives pt
  • {{langToIw|zh-hans}} gives zh
  • {{langToIw|nan}} gives zh-min-nan
  • {{langToIw|wikidata}} gives wikidata (not a language)
  • {{langToIw|abcdef}} gives abcdef (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).