Template:UselangLink
Template page
More actions
Takes a mandatory unnamed parameter containing a language code. Returns a link to the corresponding language version of the page it's used on.
The text of the link defaults to the language's autonym, and can be replaced with the optional named parameter |text=
If the dummy parameter |bare= is present, only the target link will be returned.
Uses only magic words, should work on any MediaWiki installation.
Examples
{{UselangLink|ja}}yields 日本語{{UselangLink|text=Japanese}}yields Japanese{{UselangLink|bare=yes}}yields https://wiki.neody.land/index.php?title=Template:UselangLink&uselang=ja{{UselangLink|INVALID}}yields invalid