Difference between revisions of "Template:En/doc"

From blackwiki
Jump to navigation Jump to search
(Replaced content with 'lies')
imported>Andrybak
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
lies
+
{{Documentation subpage}}
 +
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 +
{{mbox|type=move|text=This template is only for use in File namespace, when moving files between here and Commons.}}
 +
 
 +
== 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 ===
 +
* <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|demospace=File}}
 +
* <nowiki>{{En}}</nowiki> produces {{En|demospace=File}} (incorrect usage)
 +
 
 +
=== Transclusion error ===
 +
If this template is used outside of File: namespace, it produces the following error:
 +
 
 +
{{En}}
 +
 
 +
To fix this error, uses of <nowiki>{{En}}</nowiki> without parameters should usually be replaced by {{tlp|in lang|en}} (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}}.
 +
 
 +
=== TemplateData ===
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
"description": "This template was imported from https://commons.wikimedia.org/wiki/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. It should not be used outside of the File namespace",
 +
"format": "inline",
 +
"params": {
 +
"1": {
 +
"label": "text",
 +
"description": "The text of the English description",
 +
"type": "content",
 +
"required": true
 +
}
 +
}
 +
}
 +
</templatedata>
 +
 
 +
=== See also ===
 +
* {{Tl|In lang}}
 +
* {{Tl|Lang-en}}
 +
<includeonly>{{Sandbox other||
 +
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
[[Category:Wikipedia multilingual support templates]]
 +
 
 +
[[ar:قالب:En]]
 +
[[vep:Šablon:En]]
 +
}}</includeonly>

Latest revision as of 08:25, 19 April 2020

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 {{in lang|en}} instead.

To fix this error, uses of {{En}} without parameters should usually be replaced by {{in lang|en}} (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.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for En

This template was imported from https://commons.wikimedia.org/wiki/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. It should not be used outside of the File namespace

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text1

The text of the English description

Contentrequired

See also