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 may 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:Welcome |
| {{Localized link|Commons:Welcome|关于}} | 关于 |
See also
- {{Pg}} More suitable for Commons help pages. Similar functionality, but on non-English pages attempts to link first to a version of the target page in the current page language if that is not English, then in the user's preferred language, then in English as a last resort.
- Template:Localized link/messagedoc – should be used for message documentation in translatable pages that use this template.