Template:Localized link
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.
#
- If the link is a section link, the section name can be specified here.
Examples
{{ll|Project Zomboid Wiki}}
-> Project Zomboid Wiki{{ll|Project Zomboid Wiki|Main Page}}
-> Main Page{{ll|Project Zomboid Wiki|#=Quick links}}
-> Project Zomboid Wiki#Quick links
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:
- Create a subpage of this template with the language code of the language you want to translate to.
- 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.
- Translate the page according to the translation requirements of normal pages.