Template:Page language link/doc
This is a documentation subpage for Template:Page language link. It contains usage information, categories and other content that is not part of the original Template page. |
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
editThis 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/”.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Target page | 1 | The target page, without language suffix | Page name | required |
Text | 2 | Optional text to show. If not given, the link target will be shown. | Line | suggested |
Display the namespace | nsp | 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 name | optional |