1,574 bytes added
, 3 years ago
{{TemplateBox
|1=
|1d=
|1def=
|1stat=
|name=
|desc=Returns a link to the corresponding language version of the page it's used on.
|namespace=
|usergroup=
|placement=
|usage-notes=
|type=
|example=
|i18n-method=
|i18n-desc=
|seealso=
|setscats=
|lines=
|shorthand=
|relieson=
}}
Takes a mandatory unnamed parameter containing a [[m:List of Wikipedias|language code]].
The text of the link defaults to the language's [[w:autonym|autonym]], and the optional named parameter {{para|text}} can be used to replaced it.
If the dummy parameter {{para|bare}} is present, only the target link will be returned.
The content of the optional named parameter {{para|action}} will be appended to the URL with a leading "&".
Uses only [[mw:Help:Magic words|magic words]], should work on any MediaWiki installation.
== Examples ==
* {{tlc|UselangLink|ja}} yields {{UselangLink|ja}}
* {{tlc|UselangLink|2=ja|3=text=Japanese}} yields {{UselangLink|ja|text=Japanese}}
* {{tlc|UselangLink|2=ja|3=bare=yes}} yields {{UselangLink|ja|bare=yes}}
* {{tlc|UselangLink|INVALID}} yields {{UselangLink|INVALID}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=edit}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=edit§ion=1}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=history}}
{{DEFAULTSORT:UselangLink}}
<includeonly>
[[Category:Helper templates]]
[[category:internationalization templates]]
</includeonly>