Template:LanguageLink/doc

From OpenStreetMap Wiki
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. [statistics]
Usage
Basically, this template is used as part of Template:Languages and Template:LanguageLinks.
Parameters
  • 1st: (mandatory) a leading namespace prefix for the target page, if needed – for example, Help: or Template:, otherwise set to empty string
    in the past this parameter was optional and named "ns", this caused the following parameters to be unexpectedly renumbered.
  • 2nd: (mandatory) the language code – for example, de, en, or zh-hans (lettercase is non significant here)
  • 3rd: (mandatory) the target base page name of the displayed link – for example, JOSM
  • 4th: (optional) the language name to display – use it if Mediawiki cannot generate the language name itself by {{#language:code}}.
Example
{{LanguageLink|Template:|RU|LanguageLinks}} {{LanguageLink||DE|JOSM}} {{LanguageLink||JA|JOSM}} {{LanguageLink||JA|JOSM|Nihongo}}
generates:
· русский · Deutsch · 日本語 · Nihongo