Difference between revisions of "Template:En/doc"
imported>JJMC89 bot III |
imported>Tacsipacsi (add TemplateData documentation, remove a dead and a redundant interlanguage link (latter is also in Wikidata)) |
||
| Line 17: | Line 17: | ||
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}}. | ||
| + | |||
| + | === 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 === | === See also === | ||
* {{Tl|En icon}} | * {{Tl|En icon}} | ||
* {{Tl|Lang-en}} | * {{Tl|Lang-en}} | ||
| − | |||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
| Line 27: | Line 43: | ||
[[ar:قالب:En]] | [[ar:قالب:En]] | ||
| − | |||
| − | |||
[[vep:Šablon:En]] | [[vep:Šablon:En]] | ||
</includeonly> | </includeonly> | ||
Revision as of 21:49, 18 December 2019
| This is a documentation subpage for Template:En. It contains usage information, categories and other content that is not part of the original template page. |
| 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 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 {{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.
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 |