Template:LanguageExisting/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

Purpose

This template is used in Template:Languages.

If a page exists in a particular language, this template generates a parameter name for Template:Languages/Interface to show the existence. Don't use this for "en". "en" case has a special naming rule, then it was separated to Template:LanguageExistingEn.

Input parameters

  • ns: (optional) leading namespace prefix such as Help: or Template: (default is empty)
  • 1st: (mandatory) language code
  • 2nd: (mandatory) Page name

Return

  • {{{1}}}e, if {{{ns|}}}{{{1}}}:{{{2}}} exists.
  • {{{1}}}m, if {{{ns|}}}{{{1}}}:{{{2}}} is missing.

Note

This template should not be used to test the existence of more than 50 languages. So it should be used only on the major languages. For other languages, that will be displayed in an unrollable sublist but not by default, using static links (possibly red links), use the template: LanguageNotTested instead, with the same parameters.