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
https://commons.wikimedia.org/wiki/Template:Localized_link
commons.wikimedia.org
crawl=CC-MAIN-2016-26
26531
application/http; msgtype=response
sha1:ZPN3R32LCAPS7FHFSYYHXTUYPAEZZMUY
<urn:uuid:f1e6cbf3-8fa2-436a-80e5-0c1e5449435a>
2016-06-28T11:34:55Z
208.80.154.224
sha1:NISP6AZL3MFWXYESPEPKKLVUEVFVOJAF
<urn:uuid:498874d0-716c-4c14-adae-075040187bde>
https://commons.wikimedia.org/wiki/Template:Localized_link
response
<urn:uuid:8998bda0-9dc4-4597-b5dd-d1c8517e72b1>
robots: classic
hostname: ip-10-164-35-72.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-26
operator: CommonCrawl Admin
description: Wide crawl of the web for June 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf