Template:Localized link

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Dialog-warning-orange.svg Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please discuss proposed changes on the talk page first.
  • Editing a template causes all pages that use the template to be re-rendered. If the template is used often, this can put a lot of load on the servers since it fills up the job queue.
  • Keep in mind that templates that are used on file description pages also show up on other wikis.
  • This page has been protected from editing to prevent vandalism. Only administrators can edit it. Get their attention by placing {{edit protected}} at the talk page.

[[Special:MyLanguage/{{{1}}}|{{{1}}}]]

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Localized link/doc.

Shortcut: T:LocL


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:Welcome
{{Localized link|Commons:Welcome|关于}} 关于

See also