| de-at = Deutsch (Österreich) | de-ch = Deutsch (Schweiz) | de-de = Deutsch (Deutschland) | en-ca = English (Canada) | en-gb = English (UK) | en-us = English (US) | es-419 = español (América Latina) | es-ar = español (Argentina) | es-cl = español (Chile) | es-cu = español (Cuba) | es-co = español (Colombia) | es-es = español (España) | es-mx = español (México) | es-pe = español (Perú) | es-ve = español (Venezuela) | fr-be = français (Belgique) | fr-ca = français (Canada) | fr-ch = français (Suisse) | fr-fr = français (France) | pt-br = português (Brasil) | pt-cv = português (Cabo Verde) | pt-pt = português (Portugal)

Template documentation


Usage

This is a supplement to the {{#language:}} magic word that adds a few country variants that are not currently supported in MediaWiki.

It takes one parameter, which is a language code (which is not case significant):

  • {{LANGUAGE|es-es}} will render "español (España)" (not defined by MediaWiki)
  • {{LANGUAGE|ES-ES}} will render "español (España)" (same thing, letter case of the parameter is ignored)
  • {{LANGUAGE|ar}} will render "العربية" (defined by MediaWiki).

The list of supported language codes (shown in lowercase) and their assigned language names (which should be their own autonyms) is displayed in the partial preview of the template, above this documentation panel.

The language names returned for all other language codes or variants will be those returned by the {{#language:code}} Parser function, as defined in MediaWiki .

Like the parser function, you can pass a second optional parameter to indicate the desired language for translating this autonym. By default, it will return the autonym (the same name return when both parameters are identicating the same language code); you may pass the value "en" to return the name in English:

  • {{LANGUAGE|es-es|es-es}} will render "Spanish (Spain)" (not defined by MediaWiki)
  • {{LANGUAGE|ES-ES|ES-ES}} will render "Spanish (Spain)" (same thing, letter case of the parameter is ignored)
  • {{LANGUAGE|ar|ar}} will render "العربية" (defined by MediaWiki).
  • {{LANGUAGE|es-es|en}} will render "Spanish (Spain)" (not defined by MediaWiki)
  • {{LANGUAGE|ES-ES|en}} will render "Spanish (Spain)" (same thing, letter case of the parameter is ignored)
  • {{LANGUAGE|ar|en}} will render "Arabic" (defined by MediaWiki).