Template:En/doc

From blackwiki
< Template:En
Revision as of 06:16, 23 February 2014 by imported>PC-XT (updating doc to include requested sandbox changes, while still allowing current form)
Jump to navigation Jump to search

Template:Sister project

Usage

This template was imported from commons:Template:en to handle language issues that English Wikipedia does not face. It is used on files from Commons or files preparing to be moved to Commons.

Examples

  • {{en|English translation}} produces Transclusion error: {{En}} is only for use in File namespace. Use {{lang-en}} or {{in lang|en}} instead.
  • {{en|1=English translation with links}} produces Transclusion error: {{En}} is only for use in File namespace. Use {{lang-en}} or {{in lang|en}} instead.
  • {{en}} produces Transclusion error: {{En}} is only for use in File namespace. Use {{lang-en}} or {{in lang|en}} instead. (incorrect usage)

Transclusion error

If this template is used outside of File: namespace, it produces the following error:

Transclusion error: {{En}} is only for use in File namespace. Use {{lang-en}} or {{en icon}} instead.

To fix this error, uses of {{en}} without parameters should usually be replaced by {{en icon}} (or just the language name) and uses with a parameter by {{lang-en}}. In a cite, to fix |language={{en}} simply remove the curly braces to leave |language=en.

See also