Template:En/doc

From Wikisource
Jump to navigation Jump to search

Usage[edit]

  • {{en|English translation}}
  • {{en|1=English translation with links}}
  • {{en|English translation|inline=yes}}

Result:

English: en/doc translation

or

English: en/doc translation with links

or English: en/doc translation.

See also: c:Commons:Multilinguality.


Documentation[edit]

The above is what this template creates if the name of this page was Template:En. When transcluded, {{PAGENAME}} is used to generate the name of the language either by using {{#language:}} or a language specific template like the English one {{language}}. It's a quick way to add documentation to

internationalization templates

, specifically the language ones like {{es}} and {{de}} that use {{description}}. If a translation exists in the local language, this will be placed before the English version.

Only the English and the local language's documentation (if exists) show up default. Up to 8 other translations can be added (these will be in the order specified underneath the local and English translations.

See also[edit]

  • {{language}} - Returns the local language name of a language code.