User:Paine Ellsworth/Sandbox8/doc
This is a documentation subpage for User:Paine Ellsworth/Sandbox8. It may contain usage information, categories and other content that is not part of the original user template page. |
Important - Please read
[edit]See Template:Collapsible list/testcases...
This was created in an attempt to find out why the [Show]/[Hide] links extend outside the various infoboxes, as in New Delhi, India and others.
Template:Collapsible list has been altered so that the width is kept to 96% rather than 100%. This evidently brings the [Show]/[Hide] links within the borders of most of the affected infoboxes in Internet Explorer web browsers.
The India article's Template:Infobox Country is one known exception to this. After altering the width parameter in the Collapsible list template to 96%, I went back to the India article. That infobox has three collapsible lists:
- Official languages
- Constitutional languages
- Non-numbered Footnotes (at the bottom)
After the width of the Collapsible list template was reduced to 96%, two of these three lists looked okay. The [Show]/[Hide] links were within the right edge of the infobox. The #3 list was well-within the edge, and the #1 list was barely within the edge. The #2 list, what is now titled Constitutional languages, was still hanging well outside the right edge of the infobox (by the way, this is true for both IE7 and IE8 – Firefox does not have the ability to sense this defect).
As can be seen at this edit link, the name of the #2 collapsible list was longer, Constitutionally recognised languages, and it contained a line break, <br />
, between "recognised" and "languages". Rather than once again trying to get the width of the Collapsible list template reduced more, I instead tried several things locally in the India article. The result was that the line break was causing the [Show]/[Hide] link to hang over the right edge of the infobox. I removed the line break, but this of course increased the width of the first column and significantly increased the overall width of the infobox. That is when I shortened the name to Constitutional languages. This decreased the overall width of the infobox back approximately to what it had been before taking out the line break. And the [Show]/[Hide] link was then just inside the right edge of the infobox in the same manner as the Official languages collapsible list.
As noted on the India discussion page, one of the involved editors, SpacemanSpiff, accepted the changes with the reservation that there were probably other infoboxes with collapsible lists that had long names and line breaks. So maybe the Collapsible list template still needs repair?
It is important to remember that Internet Explorer is a popular web browser and used by a significant number of Wikipedia readers.
— .`^) Paine Ellsworthdiss`cuss (^`. 13:28, 12 November 2009 (UTC)
See also
[edit]- Template:Jews and Judaism sidebar - This is a different kind of challenge - look for "Denominations" - this title is long enough to conflict with the [Show]/[Hide] link.
- The same template appears differently on the template's talk page.
- Template:Capitalism - Another interesting case - this one utilizes the NavFrame div class, and it uses a combination of CSS and javascript. Note how the Economic theories box title conflicts with the [Show]/[Hide] link. I'll look at this closer in a bit.
These two templates have been repaired. — Paine's Climax 04:05, 16 November 2009 (UTC)
Editor's note
[edit]- According to statistics found at W3 Schools dot com, Internet Explorer users and Firefox users number 37.5% and 47.5%, respectively, of the total users who browse the Internet. If the Firefox browser is used to edit Wikipedia, please ensure that the edits will improve Wikipedia across popular browsers.
- Also, the skin used by general readers of Wikipedia is the "monobook" skin. So if another of the nine skins is used to edit, please be certain that the edit has improved Wikipedia in the monobook skin, too.