Template:LanguageLink/doc

From OpenStreetMap Wiki
Jump to: navigation, search
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