Difference between revisions of "Template:En/doc"

From blackwiki
Jump to navigation Jump to search
imported>PC-XT
(updating doc to include requested sandbox changes, while still allowing current form)
imported>Technical 13
(|demospace=File)
Line 9: Line 9:
  
 
=== Examples ===
 
=== Examples ===
* <nowiki>{{en|English translation}}</nowiki> produces {{en|English translation}}
+
* <nowiki>{{En|English translation}}</nowiki> produces {{En|English translation|demospace=File}}
* <nowiki>{{en|1=English translation with links}}</nowiki> produces {{en|1=English translation with links}}
+
* <nowiki>{{En|1=English translation with links}}</nowiki> produces {{En|1=English translation with links|demospace=File}}
* <nowiki>{{en}}</nowiki> produces {{en}} (incorrect usage)
+
* <nowiki>{{En}}</nowiki> produces {{En|demospace=File}} (incorrect usage)
  
 
=== Transclusion error ===
 
=== Transclusion error ===
 
If this template is used outside of File: namespace, it produces the following error:
 
If this template is used outside of File: namespace, it produces the following error:
  
<strong class="error">Transclusion error: {{tl|En}} is only for use in File namespace. Use {{tl|lang-en}} or {{tl|en icon}} instead.</strong>
+
<strong class="error">Transclusion error: {{Tl|En}} is only for use in File namespace. Use {{Tl|Lang-en}} or {{Tl|En icon}} instead.</strong>
  
To fix this error, uses of <nowiki>{{en}}</nowiki> without parameters should usually be replaced by {{tl|en icon}} (or just the language name) and uses with a parameter by {{tl|lang-en}}. In a cite, to fix {{para|language|<nowiki>{{en}}</nowiki>}} simply remove the curly braces to leave {{para|language|en}}.
+
To fix this error, uses of <nowiki>{{En}}</nowiki> without parameters should usually be replaced by {{Tl|En icon}} (or just the language name) and uses with a parameter by {{Tl|Lang-en}}. In a cite, to fix {{para|language|<nowiki>{{En}}</nowiki>}} simply remove the curly braces to leave {{Para|language|en}}.
  
 
=== See also ===
 
=== See also ===
* {{tl|en icon}}
+
* {{Tl|En icon}}
* {{tl|lang-en}}
+
* {{Tl|Lang-en}}
  
 
<includeonly>
 
<includeonly>

Revision as of 15:52, 26 February 2014

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 English: English translation
  • {{En|1=English translation with links}} produces English: English translation with links
  • {{En}} produces English: {{{1}}} (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