Jump to content

Template:Page language link

shortcut: {{pll}}
From mediawiki.org

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

Template documentation


This template is intended for use on translatable pages. It adds a link that points to a translated page in the language that is the same as the language of the current page. If a translated page doesn't exist, it points to the page in the source language.

It is different from {{Localized link }} ({{Ll }}, which links to a page in the language defined in the user's preferences using Special:MyLanguage.

You can use the short form of this template "{{Pll }}".

Usage

[edit]
{{Pll|target page|text}}

TemplateData

[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Page language link

Link to translatable page in the language of the current page, or the user’s language if the target page isn't translated. It uses the special page prefix “Special:MyLanguage/”.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Target page1

The target page, without language suffix

Page namerequired
Text2

Optional text to show. If not given, the link target will be shown.

Linesuggested
Display the namespacensp

If “nsp” parameter is not defined, as link text displays the full pagename (including namespace); otherwise — if “nsp” parameter is defined by any value — link text displays the short pagename, without namespace.

Page nameoptional