Difference between revisions of "Template:En"
imported>Redrose64 (relisted) |
imported>Primefac (Updating TFD template: discussion was relisted (XFDcloser)) |
||
| Line 1: | Line 1: | ||
| − | {{Tfm/dated|page=En|otherpage=Ka|link=Wikipedia:Templates for discussion/Log/2020 May | + | {{Tfm/dated|page=En|otherpage=Ka|link=Wikipedia:Templates for discussion/Log/2020 May 17#File namespace language templates|bigbox={{#invoke:Noinclude|noinclude|text=yes}}|type=inline}} |
{{#invoke:Namespace detect|main|file=<div class="description mw-content-ltr en" dir="ltr" lang="en"><span class="language en">'''English:'''</span> {{{1}}}</div>|other=<strong class="error">Transclusion error: {{tl|En}} is only for use in File namespace. Use {{tl|lang-en}} or {{tlp|in lang|en}} instead.</strong>|demospace={{{demospace|<noinclude>File</noinclude>}}}}}<noinclude> | {{#invoke:Namespace detect|main|file=<div class="description mw-content-ltr en" dir="ltr" lang="en"><span class="language en">'''English:'''</span> {{{1}}}</div>|other=<strong class="error">Transclusion error: {{tl|En}} is only for use in File namespace. Use {{tl|lang-en}} or {{tlp|in lang|en}} instead.</strong>|demospace={{{demospace|<noinclude>File</noinclude>}}}}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 02:47, 17 May 2020
| 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
- {{En|English translation}} produces Template:Tfm/dated
- {{En|1=English translation with links}} produces Template:Tfm/dated
- {{En}} produces Template:Tfm/dated
Transclusion error
If this template is used outside of File: namespace, it produces the following error:
Template:Tfm/dated 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
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| text | 1 | The text of the English description | Content | required |
See also
| The above documentation is transcluded from Template:En/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |