Template:LanguageLink

From OpenEMR Project Wiki
Revision as of 09:37, 27 June 2012 by Bradymiller (talk | contribs) (39 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[edit] [purge] 50px Template documentation
Usage
Basically, this template is used as part of Template:Languages and Template:LanguageLinks.
Parameters
  • ns: (optional) a leading namespace prefix for the target page, if needed – for example, Help: or Template:
  • 1st: (mandatory) the language code – for example, de, en, or zh-hans
  • 2nd: (mandatory) the target base page name of the displayed link – for example, JOSM
  • 3rd: (optional) the language name to display – use it if Mediawiki cannot generate the language name itself by {{#language:code}}.
Example
{{LanguageLink|ns=Template:|RU|LanguageLinks}} {{LanguageLink|DE|JOSM}} {{LanguageLink|JA|JOSM}} {{LanguageLink|JA|JOSM|Nihongo}}
generates:
русский Deutsch 日本語 Nihongo