Template:Localized link

From PZwiki
Lock-locked.png
This page has been put into protection by a PZwiki administrator.
Only users in the sysop user group may edit this page.
Notebook.pngTemplate Documentation

This template is used to translate links from English to the current article's language (subpage language code). The names are generated based on the title customized with DISPLAYTITLE magic word.

Usage

It is recommended to use this template instead of normal innerwiki links ([[link|text]]) on pages that will be translated into other languages, as it will automatically link to the correct subpage.

Templates have another translate method, so do not use this template on them.

Because pages under Special namespace will be auto-translated by mediawiki, do not use this template on them. e.g. use [[Special:RecentChanges]] instead of {{ll|Special:RecentChanges}}.

User pages don't need to be translated, so do not use this template on them. e.g. use [[User:Example]] instead of {{ll|User:Example}}.

Talk pages follow the rules of the corresponding namespace.

Parameters

1 Required
The English word of the link.
2
The name of the link to be displayed.
3
If the language code is different from the current page, the language code can be specified here.
LightBulbYellow.png
Do not use this parameter on normal pages.
#
If the link is a section link, the section name can be specified here.

Examples

Translate localized link

If you want to translate a page using this template, follow the instructions below:

  • You should only translate words on 2 parameter, keep other parameters unchanged.
  • If the linked page has been translated, you should use # parameter to specify the section name with translated section name.

See Help:Translations#Translating templates for more details.

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.