Template:LanguageLink
From OpenStreetMap Wiki
This documentation is transcluded from Template:LanguageLink/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
- 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}}.
- 1st: (mandatory) a leading namespace prefix for the target page, if needed – for example, Help: or Template:, otherwise set to empty string