Template talk:Ent
From Wikipedia, the free encyclopedia
Contents |
[edit] Bug
There's a weird bug in this template, or perhaps in Mozilla. Use it just once in an article and everything's fine. Use it twice, at least in succession, and I see the Wikipedia logo smashed on top of the article text, and all the other stuff that's supposed to be to the left (navigation, etc) appears below the article. I'm using Mozilla 1.7.8 running under Debian 3.1 --Trovatore 16:07, 19 September 2005 (UTC)
- Hi Trovatore, it sounds like a problem at your end, although I'm not expert enough to guess what it might be. The template has been used with no problems with IE, and Firefox 1.0.5, 1.0.6 and 1.5 Beta 1. See Thucydides and Wheeze; does it happen only when you're editing with the template, or does every page where the template is used load that way?—encephalonεγκέφαλον 16:20, 19 September 2005 (UTC)
- Interesting--both of those pages are fine. However Euclid's identity is not fine. If I comment out one of the instances of the template, then "Euclid's identity" looks OK. --Trovatore 23:40, 19 September 2005 (UTC)
- Sorry, Euler's identity, not Euclid's --Trovatore 23:41, 19 September 2005 (UTC)
- Hm. I don't know why it's happening, except to remain suspicious that it's something at your (browser's) end. But I see that you're a mathematician, Trovatore, and must know Paul August. He's the chap who created the template. Maybe he could help? Kind regards—encephalonεγκέφαλον 23:55, 19 September 2005 (UTC)
- Sorry, Euler's identity, not Euclid's --Trovatore 23:41, 19 September 2005 (UTC)
- Interesting--both of those pages are fine. However Euclid's identity is not fine. If I comment out one of the instances of the template, then "Euclid's identity" looks OK. --Trovatore 23:40, 19 September 2005 (UTC)
I don't know what is going on here. I made a small change. Does that help Travatore? Paul August ☎ 01:17, 20 September 2005 (UTC)
- Nope. Does no one else see this problem? --Trovatore 02:04, 20 September 2005 (UTC)
- BTW same problem in Netscape 7.1 running under WinXP. --Trovatore 02:10, 20 September 2005 (UTC)
[edit] Recent changes
This template was changed today by Mzajac. With apologies to Mzack ;-), I have reverted these changes. The changes did two things I don't like. First it reformatted the note numerals from small superscripts, to normal sized unsuperscripted numerals. I prefer the former style (which is a common style elsewhere) because it better matches exactly the style of the numerals placed in the text. Since the template now begins with a "break" instead of a "div", there is always an extraneous blank line preceding the first note. I suspect that this was to eliminate the unclosed "div". Was this causing a problem?. I have wondered if the "bug" mentioned above might be related to the missing "</div>". That problem occurs only intermittently, and only in the rare circumstance that:
- the articles uses math TeX formatting, i.e. it contains "<math> </math>",
- "MathML if possible (experimental)" preference is selected on in "my preferences" for math rendering, and
- there are at least two occurrences of the "ent" template.
See this test file.
I have a test version of this template, template:ent2, which adds a preceding "</div>", and which I think fixes this problem. Paul August ☎ 17:21, 23 February 2006 (UTC)
- Okay, sorry, my "improvements" were not quite successful.
- The correct, but not universal, typographic convention is to use superscripts for note references in text, but plain numbers before the notes. This is recommended in Bringhurst's Elements of Typographic Style, the "bible" of typography (version 2.5, "Notes," p. 68).
- This template starts each note with an opening div tag, and HTML Tidy automatically closes these divs at the end of the article, also assuming that other
</div>
closings are for these divs. This could lead to a strange and incorrect mish-mash of nested divs in the last few sections of the article. It could cause strangeness, possibly including the bug above (which I haven't seen).
- Really, each note should be a list item in a list, but this would require changing the fundamental way this operates. I think it's better to eventually replace it with the new Wikipedia Cite extension. Discussion about the format of that system is currently in progress at Wikipedia talk:Manual of Style#Changes to Cite.. —Michael Z. 2006-02-23 17:47 Z
[edit] Two bugs
I discovered the rf/ent templates recently. In infinity there are two problems:
- The links and backlinks don't work because the template parameters have leading spaces. In wikilinks, doubled spaces are reduced to one, but apparently they are not within div IDs. I think this could be fixed by writing out the href tag rather than using the wikilink.
- The size reduction for the notes doesn't work because the Ent template begins with a closing div. Shouldn't the closing div be at the end so each use of the template is self-contained?
Any big issues with these changes? Gimmetrow 18:41, 18 December 2006 (UTC)
- OK, so moving the div causes a linebreak, so it should be a span. Having unmatched html tags is sure to break things, and it does. The following works with the infinity page. If there are some other pages of great concern I will verify that it works with them as well. Please update. Gimmetrow 05:15, 19 December 2006 (UTC)
- This also fixes the backlinks with {{Rf}} per off-wiki testing. Gimmetrow 06:29, 19 December 2006 (UTC)
<span id="endnoteQ{{{2}}}"><sup><small>[[#refQ{{{2}}}|{{{1}}}]]</small></sup></span>
-
- Partially done. Leaving a tag open within a template just seems risky, but using span had side-effects in some articles. I would suggest that users listing notes with {{ent}} use bullets (*) or tabs (:) so that if/when the dangling open div tag is removed, it will be unlikely to affect articles. (Bullets are invisible with the standing version of {{ent}} as they get lost in the div tag.) Gimmetrow 06:58, 27 December 2006 (UTC)
[edit] Requested edit
This template is protected, and should be tagged with {{protected template}}, or another suitable protection template. Thanks – Qxz 19:18, 15 March 2007 (UTC)
- Done. – Luna Santin (talk) 02:41, 16 March 2007 (UTC)