Template talk:En
Template:En has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit. |
Broken en template
[edit]On the article [1] you can see, that the en template is broken.
The produced html code is this:
<div class="description en">
<p><span class="language"><b>en:</b></span> <span class="text">{{{1}}}</span></p>
</div>
other languages produce this code:
<b>ca:</b> Catalan:
I can't figure out how to fix this, so it would be nice is someone take care of it.
- Looks like we are supposed to use {{En|Name}} now. It breaks a lot of freaking pages. Also, a newline is added after the name. --Pmsyyz 09:10, 23 October 2005 (UTC)
- Thanks, what ever you did, it fixed the Problem. -- NooN 14:36, 24 October 2005 (UTC)
Extra break
[edit]The { {EN} } seems to have a superfluous break which the other languages do not have - see Filipendula ulmaria. Can someone pls fix this? TeunSpaans 19:55, 21 December 2005 (UTC)
- See proper usage at Filipendula ulmaria now. --Pmsyyz 07:24, 22 December 2005 (UTC)
Single line version
[edit]Hi. I'd like to make multilingual title sections in galleries, but when use this template it puts some br tag or equivalent. Example:
==={{en|Section Title}} {{es|Título de sección}}===
English: Section Title Español: Título de sección
[edit]Could be possible to have one solution for this? Bear in mind that even bold text can be inapropiate in this case. Regards, --Colegota 13:12, 18 May 2006 (UTC)
- This is because it uses <div>. Maybe you want to create Template:en-inline, Template:de-inline, Template:fr-inline and others using the <span> tag. TZM de:T/T C 13:23, 2 July 2006 (UTC)
- Hi, I think that we would need to have a keyword option such as 'aside' or 'inline' to use the template inline: {{en|some English text|inline=yes}} would do the job by disabling the 'div' tags in the template and replacing them by a 'span' tag.
- -- AlNo (talk) 08:58, 26 January 2007 (UTC)
- I've added the 'inline' optional parameter in the templates 'en' and 'es'. This works when they are used in a single paragraph : English: description textEspañol: texto de descripción. Best regards,
- -- AlNo (talk) 15:14, 26 January 2007 (UTC)
- I've added the 'inline' optional parameter in the templates 'en' and 'es'. This works when they are used in a single paragraph :
Another break: numbered lists
[edit]This template (or perhaps the Description template) breaks numbered lists. I first noticed this on Image:Biological cell.svg, where the list of organelles skips the number 2. It's easily reproducible:
{{en|Here's a list: #one #two #three}}
Produces:
- one
- two
- three
The same problem occurs in all language tags; they always skip number the 2. MithrandirMage 16:13, 9 April 2007 (UTC)
Yellow
[edit]Why is it yellow? It doesn't seem fair to make "English" yellow and not other languages... --TwoWings (jraf) * Wanna talk? ;-) 02:18, 7 October 2007 (UTC)
new version removes characters in front of it
[edit]See e.g. Bezirk Mitte: the * is not shown. Please take care that all language templates work the same way. --BLueFiSH.as 08:06, 7 October 2007 (UTC)
Hyperlinks
[edit]If hyperlinks are placed inside this template, for some reason they break it and all text is invisible. Kelly 17:08, 21 May 2008 (UTC)
For example:
- English: http://commons.wikimedia.org- it works for {{en|1=http://commons.wikimedia.org}}
- - but it is broken for {{en|1=http://commons.wikimedia.org?uselang=pl}}
--Jarekt 13:03, 22 May 2008 (UTC)
- That's true for any template. It's the equal sign. The template thinks your assigning a value to some parameter. Use {{en|1=...}}. Rocket000(talk) 23:42, 23 August 2008 (UTC)
- Adding "1=" worked for me, so I tried updating the documention with this edit to help other editors. I then used "&action=purge" to purge the cache so that my change appears in the template page. -84user (talk) 17:00, 23 November 2008 (UTC)
Extra break
[edit]None of the other languages do it.
{{en| some text. }} {{es| some text. }} {{pt| some text. }} {{zh| some text. }} {{ar| some text. }}
gives:
Anyone know why? Rocket000(talk) 23:39, 23 August 2008 (UTC)
- I don't know why, but this edit fixed it. Lupo 11:11, 26 August 2008 (UTC)
Internationalizing this template
[edit]I think this template should also be internationalized. Adding {{Language}} at the beginning and end would make English: look like Inglês: to a Portuguese user and Angle: to an Esperanto user. This should also be done with the other language templates. What do you think? ~★ pikolas [[mia diskuto]] 15:16, 16 June 2010 (UTC)
Problem with URLs
[edit]I have noticed that if any URLs are placed inside the template, no text is displayed at all. Can this problem be fixed? — Cheers, JackLee –talk– 11:06, 5 May 2011 (UTC)
- URLs often include the equals sign, which is special in wikitext syntax. To fix that, write
{{en|1=https://example.org/?urlParam=foo}}
(i.e. explicitly name the first positional parameter) instead of{{en|https://example.org/?urlParam=foo}}
, where the template {{En}} gets a named parameterhttps://example.org/?urlParam
with valuefoo
instead of the expected first positional parameter. For details, see w:Help:Template#Hints and workarounds. —andrybak (talk) 00:50, 20 August 2024 (UTC)
Issues with other languages
[edit]I think there is an issue with this template causing issues with other languages.
I have been attempting to place the following in the description for File:Sarah Bernhardt by C.R. Savage.jpg
|description={{en|1=Photo of Sarah Bernhardt, take by Charles Roscoe Savage a French stage and early film actress.}}
{{fr|1=Portrait de l`actrice Sarah Bernhardt (1844-1923) par Charles Roscoe Savage (1832-1909)}}
{{es|1=Retrato de la actriz Sarah Bernhardt (1844-1923) por Charles Roscoe Savage (1832-1909)}}
{{it|1=Ritratto di attrice Sarah Bernhardt (1844-1923) per mano di Charles Roscoe Savage (1832-1909)}}
{{zh|1=人像摄影 从 Sarah Bernhardt (1844-1923) 通过 Charles Roscoe Savage (1832-1909), 剪下的部分}}
However, none of the other languages appear in the description, ever, unless I remove the {{en|}} template, then eerything works. I not sure what the issue is.--ARTEST4ECHO talk 18:13, 30 October 2013 (UTC)
- I see all of them. Can anybody reproduce this issue? --Jarekt (talk) 00:42, 21 December 2014 (UTC)
Remove category
[edit]{{Editrequest}} Can we remove it from Category:Commons-en? It does not belong there. Alan Liefting (talk) 07:15, 20 December 2014 (UTC)
- Can't be done from here. Template:Internationalization template doc adds each of the language-code templates to the corresponding Commons-* category ({{En}} to Category:Commons-en, {{De}} to Category:Commons-de, etc.). Template talk:Internationalization template doc would be the place to raise this issue. Powers (talk) 20:02, 23 December 2014 (UTC)
Edit request: Heavily used template
[edit]{{Edit request}}
Please add <noinclude>{{heavily used template}}</noinclude>
to the top of this high use template (example). Riley Huntley (talk) 08:48, 30 April 2016 (UTC)
- Done--Jarekt (talk) 13:15, 2 May 2016 (UTC)
Edit request to format the documentation
[edit]See also: Template talk:Internationalization template doc#Wrapping in Template:Documentation {{Edit request}} Please add {{Documentation}} inside the last <noinclude> tag:
<noinclude>{{heavily used template}}</noinclude>{{description|1=en|2={{{1|<noinclude>abc</noinclude>}}}|inline={{{inline|}}}}}<noinclude> {{Documentation|content= {{internationalization template doc|de|es|eo|fr|nl}} }} </noinclude>
—andrybak (talk) 16:37, 7 June 2019 (UTC)
- Done Wrapped with both 1= and content= parameters set so the buttons at the top also work properly --Majora (talk) 22:15, 6 July 2019 (UTC)
Such templates should link to which Wikidata items? (XX icon) or (Lang-XX), or create items independently?
[edit]Maybe the section title is a little Chinglish but I'm still interesting in it, on Wikidata there are several templates' items related to this topic, as an example, German may have Template:De icon (Q6231596) and Template:Lang-de (Q5901420), which set of those items match Commons' language code templates better? --Liuxinyu970226 (talk) 03:29, 14 May 2020 (UTC)
- @Rocket000, Lupo, AVRS, Jarekt, and Majora: ^^ --Liuxinyu970226 (talk) 03:32, 14 May 2020 (UTC)
- There is very little difference between those templates on en-wiki and our {{De}} is also a bit different than either of them. Right now {{De}} is connected to Template:Lang-de (Q5901420) and that seem like a better choice than the other one. --Jarekt (talk) 04:28, 14 May 2020 (UTC)
Change in layout
[edit]Is it my impression or the font has recently increased and turned to bold? I would swear that it was the same than other languages, but I don't know. Or maybe a chage in preferences:appearance I didn't choose and didn't know how to reverse? ※Sobreira ◣◥ 〒 @「parlez」 01:08, 17 May 2023 (UTC)
Tables
[edit]break the template. Explain in an obvious and easily searchable way how to include tables in the description area of the information section. — LlywelynII 17:15, 17 August 2024 (UTC)
- This problem is not limited to Template:En. Please see w:Help:Template#Hints and workarounds, quote:
it is not possible to use an ordinary pipe character
. —andrybak (talk) 00:45, 20 August 2024 (UTC)|
in a template parameter specification, as it would be interpreted as separating one parameter specification from another. This problem can [...] be solved by using the magic word{{!}}
in place of the pipe