Template:Localized link/doc
Template page
More actions
Purpose
This template can be used to link to translatable pages in the user's language. It uses the special page Special:MyLanguage, which checks if there is a translated version of a page in the user's language, and links to it if there is one, and links to the English version if there isn't.
It should be used in translated pages, so that they link to the right page even if there is no translated page in that language.
Usage
It is used in the same way normal wikilinks are used: One parameter to use the same link text as the page name, two parameters for different page name and link text.
Examples
| Use | Becomes |
|---|---|
| {{Localized link|Commons:Welcome}} | Commons:About |
| {{Localized link|Commons:Welcome|关于}} | 关于 |
See also
- Template:Localized link/messagedoc – should be used for message documentation in translatable pages that use this template.