Template talk:En

Untitled
Apart from seeming thoroughly pointless, on the English Wikipedia, every use of it I have found is mistaken: people generally assume that it redirects to something like en icon, [ ]. As (eg) it and fr do just that [, ], I would suggest that this does the same. —Ian Spackman 22:36, 8 December 2006 (UTC)


 * I'm currently using WP:AWB to replace instances of fr with calls to fr icon, specifically so that fr can act the same as de does (providing a link to the French Wikipedia, for fr). I'm doing the same to several other similar templates at the same time. — OwenBlacker (Talk) 20:33, 21 October 2007 (UTC)

Edit request on 18 August 2013
Add En icon

Lfdder (talk) 00:22, 18 August 2013 (UTC)
 * Yes check.svg Done -- Red rose64 (talk) 07:50, 18 August 2013 (UTC)

Edit request on 20 February 2014
Replace being deleted with a less confusing notice, such as I don't know which type would be more appropriate: move, delete, notice, style or content.

This template was discussed at Templates for discussion/Log/2013 August 18 and closed as delete. This was then disputed. The resolution was to keep the template for use only in File space. There was no real consensus on what the template should contain, so it was left as is, with the deletion notice. This sparked a question at Wikipedia talk:Templates for discussion, prompting this edit request to avoid future confusion. —PC-XT+ 11:39, 20 February 2014 (UTC)
 * Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Once this is done and looks good, I'll request the protection level on this template lowered to so that I can process this request. — &#123;&#123;U&#124;Technical 13&#125;&#125; (t • e • c) 13:38, 20 February 2014 (UTC)
 * There's not even any testcases here. — Lfdder (talk) 16:44, 20 February 2014 (UTC)

I've added the new notice to the doc subpage. can simply be removed from the template. — Lfdder (talk) 16:44, 20 February 2014 (UTC)
 * Yes check.svg Done I've replaced Being deleted with — &#123;&#123;U&#124;Technical 13&#125;&#125; (t • e • c) 17:42, 20 February 2014 (UTC)
 * So now we have two of the same. — Lfdder (talk) 18:21, 20 February 2014 (UTC)
 * please address this. — Lfdder (talk) 21:30, 20 February 2014 (UTC)

Followup edit request
Changes are in the sandbox

By the same reasoning as the above edits, I have removed/replaced all transclusions of this template in many namespaces. The sandbox should remove non-commons usage and add namespace detection. —PC-XT+ 05:48, 23 February 2014 (UTC)
 * , one of us is confused. I've synced the sandbox with the live template (which should alway be done before you start hacking in on the code) and am wondering if you would be so kind as to make your changes to that.  I think you are missing the fact that the code that it appeared you wanted removed isn't in the template anymore. , perhaps you could chime in here as well and we can get this template properly situated to everyone's needs.  Thanks. — &#123;&#123;U&#124;Technical 13&#125;&#125; (t • e • c) 14:22, 23 February 2014 (UTC)
 * Getting the notice removed/replaced was a stepping stone. It said that this tpl's getting deleted, which is/was no longer true. This tpl's only meant for use in descriptions of files copied over from Commons. This latest change is for getting rid of and displaying an 'error' that this template should only ever be used in the File namespace in all other instances. There is (as far as I can tell) consensus for these changes (see PC-XT's explanation and the links at the top of this thread). — Lfdder (talk) 14:37, 23 February 2014 (UTC)
 * Yes, the first edit was simply to remove the notice, not handle the File namespace. I pasted the template into the sandbox, then edited it. Are you saying I should have substituted it in the first edit, before making changes? (I used [//en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Template%3AEn&page2=Template%3AEn%2Fsandbox sandbox diff] to compare, and didn't think to make an extra first edit.) The main links are: TfD, File namespace discussion and template followup discussion including this sandbox. Sorry for the confusion. —PC-XT+ 21:15, 23 February 2014 (UTC)
 * Also note that the other two templates in that last discussion, (ar and de,) were deleted and WP:SALTed. This one was only spared for use in File namespace because of its relationship with Commons, which has a similar template. We felt an error was in order, and this is more informative than the red template name. (The commons version has a different error handling method, using categories, but so far nobody has suggested that such is needed, here, though it could easily be added.) Suggested testcases: try it on some Files (preview) to see no change between sandbox and current version, then try it anywhere else for the error message from the sandbox. —PC-XT+ 21:43, 23 February 2014 (UTC)

I understand if template editors would like to have an RfC or something, to better define the sandbox before making the edit. It could consider such questions as how closely we want to support the commons template, what we want the error message to be in other namespaces (possibly allowing the text to be visible, for instance), whether we should have a second message for empty content instead of simply allowing the display of, or possibly other matters that may rise. Or, would it be better to make the requests in smaller stages, so template editors can easily see what is changing? (This has 2 changes in it. We could separate them into two edit requests, if it would simplify things...) —PC-XT+ 11:33, 26 February 2014 (UTC)
 * I've changed the tpl in the sandbox to use Module:Namespace detect and set up some testcases. what do you think? — Lfdder (talk) 12:12, 26 February 2014 (UTC)
 * Yes check.svg Done — &#123;&#123;U&#124;Technical 13&#125;&#125; (t • e • c) 15:53, 26 February 2014 (UTC)
 * Thanks. You need to purge the tpl for the doc changes to take effect. — Lfdder (talk) 16:05, 26 February 2014 (UTC)
 * Never mind, it seems us peasants can also purge. — Lfdder (talk) 19:19, 26 February 2014 (UTC)
 * Any user can WP:PURGE a page. There's been a "[purge]" link at the top of template doc boxes since - longer than I've been around. -- Red rose64 (talk) 19:51, 26 February 2014 (UTC)
 * I can't purge fully-protected templates. — Lfdder (talk) 19:55, 26 February 2014 (UTC)
 * Yes you can; has just tried it, and if they can do it, so can any user who is not blocked. Please note that a WP:PURGE is not the same as editing a page and saving it - that's a WP:NULLEDIT. -- Red rose64 (talk) 20:09, 26 February 2014 (UTC)
 * Right then, whatever it is, I can't apply doc changes to fully-protected templates. — Lfdder (talk) 20:11, 26 February 2014 (UTC)
 * I really don't see why not. The prot level of a template is not inherited by its doc page; and if IP editors (and Redrose64a) can go to a full-prot template, click the "[edit]" link at the top of the green documentation box, edit the doc page, save it, return to the template, click the "[purge]" link at the top of the green documentation box and see an update, there's no reason why you should not be able to do the same. The only difference between the purge action for IPs and for logged-in users is that when an IP clicks the "[purge]" link at the top of the doc page, the purge isn't actioned immediately - instead they get an extra page which reads: Clear the cache of this page?

Purging a page clears the cache and forces the most current revision to appear. But once that "Yes" button is clicked, there is no difference from any registered user. -- Red rose64 (talk) 21:10, 26 February 2014 (UTC)
 * It seems I can apply some changes, but, for example, I've subst'ed Template:Arabicnav in the doc of Template:Lang-ar, but it's still transcluded. — Lfdder (talk) 21:57, 26 February 2014 (UTC)
 * It's possible that your computer is showing a locally-cached copy. Try a WP:BYPASS; in Firefox, for example, this is -- Red rose64 (talk) 23:21, 26 February 2014 (UTC)

I did try that earlier; no dice. Anyway, it's fixed itself now. Thanks for looking into it. — Lfdder (talk) 00:07, 27 February 2014 (UTC)

Import markup from Commons
Please apply my sandbox edit. It imports Commons’ markup, which provides consistent layout with the Commons version, and (more importantly) helps CommonsMetadata to extract the description itself, so the “English:” text doesn’t appear in the extracted metadata. Thanks in advance, —Tacsipacsi (talk) 21:48, 18 December 2019 (UTC)
 * Yes check.svg Done DannyS712 (talk) 22:07, 18 December 2019 (UTC)

Template-protected edit request on 9 May 2020
Replace Wikipedia:Templates for discussion/Log/2020 May 2#File namespace language templates with Wikipedia:Templates for discussion/Log/2020 May 9#File namespace language templates, the discussion has been relisted. TheTVExpert (talk) 15:00, 9 May 2020 (UTC)
 * Yes check.svg Done -- Red rose64 &#x1f339; (talk) 15:11, 9 May 2020 (UTC)

When to use
The usage instructions should explain when and where this template should be used. By my count, it is used on 3482 File pages in English Wikipedia, meaning that the overwhelming majority of File pages do not use it. Should they? If not, when is it called for? More specifically, if it is intended that any Wiki editor who thinks, "This file might be moved to commons someday" should slap this template into the file, where does it go? If is used, is  to be used with the description parameter only, or with some others as well? If one expects that the template is to assist human editors, it doesn't matter much, but if one expects that there are automated processes that do something with it, it could matter a lot. —Anomalocaris (talk) 06:36, 4 June 2023 (UTC)
 * Primarily, it's a Commons template, see c:Template:En, where it's for wrapping English-language text in file descriptions (because Commons is multi-lingual). As to why it's here, sometimes a commons file that is heavily used here is copied here, with the template copied verbatim. Thus, any templates that might be used inside that will also need to be mirrored here. -- Red rose64 &#x1f339; (talk) 09:04, 4 June 2023 (UTC)
 * Redrose64: OK ... for what it's worth, I've removed all transclusions of this template from English Wikipedia outside File space except for 3 User .js pages and one Help Desk archive in Wikipedia space where the user was asking a question about why the template displayed badly. —Anomalocaris (talk) 09:49, 4 June 2023 (UTC)

Won't wrap multiple blocks
A of File:Katagalugan dialects.png had this template wrapping 5  templates, causing missing end tag for. I fixed it by having it wrap each template individually, which eliminated the lint error but looked terrible, so I modified it to wrap only the first template. The real fix is to make it so it can wrap multiple blocks without generating lint errors. —Anomalocaris (talk) 06:44, 4 June 2023 (UTC)

Postscript: c:File:Katagalugan.png has this template wrapping only one legend template, with the remaining English-language legends not specifically marked. —Anomalocaris (talk) 09:58, 4 June 2023 (UTC)
 * There are two main kinds of HTML element: block and inline (the p element is a special case, which I will come to later). A block element (also known as flow content) may enclose both kinds (as well as plain text), but may only be enclosed by other block elements. An inline element (also known as phrasing content) may be enclosed by either kind, but may itself only enclose other inline elements and plain text. Consider and  separately.
 * Usage such as emits the markup   This is plain text plus a span element, snd span is an inline element.
 * Usage such as emits the markup   This a span element plus plain text all wrapped in a div element, snd div is a block element.
 * So putting inside  is putting a block element inside an inline element, which is not permitted. To make it possible for  to enclose a block element such as, we would need to change the  inside  to a block element such as , which would bring about far more problems than it solves, since it would then not be possible to use it inline.
 * By contrast, putting inside  is putting an inline element inside a block element, which is permitted.
 * Regarding : I noted that it's a special case, in that it doesn't behave like any other HTML element. Seen from the outside, it's a block element and can only be used where a block element is permitted; but seen from the inside, it's an inline element, and may only contain inline elements and plain text. Indeed, if you try to put any type of block element, whether, ,  or even another inside a p element, that will force an implicit closing  tag at the point where the block element begins. So a , being a div element, will terminate any  in which it is placed.
 * There are two possible fixes to the problem at File:Katagalugan dialects.png: (i) alter it so that instead of five instances of being enclosed by one instance of, you instead have five instances of  each enclosing one instance of , as in   or (ii) simply remove the   and its balancing   leaving the rest untouched. -- Red rose64 &#x1f339; (talk) 10:20, 4 June 2023 (UTC)
 * As for c:File:Katagalugan.png, the way that it uses is also incorrect, as is its use of  for the same reasons. It does however use  correctly. -- Red rose64 &#x1f339; (talk) 12:46, 4 June 2023 (UTC)

Redrose64: On English Wikipedia, can wrap  without lint error. Behold: There is no need to modify File:Katagalugan dialects.png to avoid lint errors, as it is already lint-free, and there are no lint errors in English Wikipedia in File namespace right now, with almost 4,000 file pages transcluding. —Anomalocaris (talk) 20:07, 4 June 2023 (UTC)