Jump to content

Template talk:Navbox: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 370: Line 370:
: FYI, the /Nested list, again/ suggestion I made was about getting pseudo-groups (i.e. nested lists) to work inline using <code>.hlist li ul { display: inline; }</code>; help with that idea would be appreciated. It would also be nice to get the nowrap adjusted to make whole li-tags not wrap&nbsp;— things like "<code>* [[book title]] (year)</code>". Something like: <code>.hlist li { white-space: nowrap; }</code>.
: FYI, the /Nested list, again/ suggestion I made was about getting pseudo-groups (i.e. nested lists) to work inline using <code>.hlist li ul { display: inline; }</code>; help with that idea would be appreciated. It would also be nice to get the nowrap adjusted to make whole li-tags not wrap&nbsp;— things like "<code>* [[book title]] (year)</code>". Something like: <code>.hlist li { white-space: nowrap; }</code>.
: I'd be wary of putting the middots /before/ items as these are really [[interpunct]], not [[bullet (typography)|bullets]]; such punctuation logically follows, not precedes. Dots at the beginning of wrapped lines would be unfortunate. The padding/margin values used w/flatlist may be able to be tweaked to get more consistent rendering—if so, fine—but deployment of flatlist should not be thwarted. &nbsp;—[[User:Portuguese Man o' War|Portuguese Man o' War]] 23:09, 1 October 2011 (UTC)
: I'd be wary of putting the middots /before/ items as these are really [[interpunct]], not [[bullet (typography)|bullets]]; such punctuation logically follows, not precedes. Dots at the beginning of wrapped lines would be unfortunate. The padding/margin values used w/flatlist may be able to be tweaked to get more consistent rendering—if so, fine—but deployment of flatlist should not be thwarted. &nbsp;—[[User:Portuguese Man o' War|Portuguese Man o' War]] 23:09, 1 October 2011 (UTC)
::I fail to understand the obsession some editors have with telling others that they need to download a new browser because some changes they've made don't work in IE - it smacks or smugness and arrogance. Like it or not, IE is the most common browser used, and you can't ask over 40% of internet users to change their browser because you can't get the code to work. [[User:Number 57|<font color="orange">Number</font>]] [[User talk:Number 57|<font color="green">5</font>]][[Special:Contributions/Number 57|<font color="blue">7</font>]] 23:24, 1 October 2011 (UTC)
::I fail to understand why some editors think the answer is to tell others that they need to download a new browser because some changes they've made don't work in IE - it smacks or smugness and arrogance. Like it or not, IE is the most common browser used, and you can't ask over 40% of internet users to change their browser because someone can't get the code to work. [[User:Number 57|<font color="orange">Number</font>]] [[User talk:Number 57|<font color="green">5</font>]][[Special:Contributions/Number 57|<font color="blue">7</font>]] 23:24, 1 October 2011 (UTC)

Revision as of 23:36, 1 October 2011

Why is HTML tidy required?

I ask because HTML tidy conflicts with FCK editor, which we use. So we have to switch it off, which implies you cannot use FCK editor & navboxes together! But when I switch off HTML tidy the navboxes look OK. --Robinson weijman (talk) 13:56, 21 January 2011 (UTC)[reply]

Perhaps this was true for an older version of MediaWiki? If navboxes do indeed work with Tidy disabled, we should revise the documentation. (But I cannot test it for myself.) EdokterTalk 21:10, 21 January 2011 (UTC)[reply]
I can confirm that HTML tidy is not needed, at least, on version 1.16. The "fixed" version provided on the wikify project refuses to render right, copying the template wholesale from Template:Navbox works properly. And HTML tidy is NOT installed on my server. TheGreatTK (talk) 18:59, 21 June 2011 (UTC)[reply]

Navbox populated from Category

I'm trying to create a Navbox template that will derive its link content from a category, so that the Navbox does not need to be manually edited each time a page is added to or removed from the category. Obviously I'm not the first to have thought of this, but I have failed to find any help or instructions for achieving it. Can anyone point me to simple instructions? Or even offer advice? My failed attempt is at Template:Horse breeds of Italy; I want it to look something like Template:Spanish horses, with the links on a few lines and separated by bullets. Presumably I'm getting the data from the category in the wrong way? Justlettersandnumbers (talk) 05:57, 28 March 2011 (UTC)[reply]

I doubt that this is possible - as far as I know the "categorytree" function always returns the items as a vertical list. Maybe there's some clever trickery to be done with CSS (or even a parameter for categorytree) - you could try asking at the technical village pump, but I suspect there won't be a solution.--Kotniski (talk) 06:56, 28 March 2011 (UTC)[reply]
This could be done with css I think, using a declaration of the sort (I don't think this exactly/alone will work) table.navbox td div div.CategoryTreeTag div.CategoryTreeItem { display: inline }. That said, to see this globally, you would need consensus, and I don't think you would be able to find that.
On a side note, the html that CategoryTree renders is horrendous. The use of divs and spans as opposed to uls and lis is appalling. --Izno (talk) 17:41, 28 March 2011 (UTC)[reply]
PS: Not as appalling as the html generated by navbox though! :^)

Transwiki Navbox

Hey,

I am trying to transwiki the Navbox to my wiki. I have copied over the Common.css and the Common.js as well as the Transwiki versions of TL:Navbox and TL:Navbar. I have also installed parser functions. However, as you can see here, the collapse link won't show up. Any suggestions?--213.196.218.100 (talk) 18:23, 12 April 2011 (UTC)[reply]

I'm having the same exact problem. I've tried it with and without HTML Tidy and I get the same result: no show/hide button. Can anyone help? Cgseif323 (talk) 19:58, 15 July 2011 (UTC)[reply]
I had to go here and make sure my code matched. If it still doesn't work, check the talk page. --Wikisian (talk) 13:32, 1 August 2011 (UTC)[reply]

Styling

Is there a compelling reason to allow users to add their own styling to a Navbox because Template:Phantom of the Opera and the boxes on Giovanni_Trapattoni are compelling reasing to remove these options Gnevin (talk) 00:15, 16 April 2011 (UTC)[reply]

Own styling shouldn't be allowed, but good luck getting consensus on that. Every sports project loves them colors. :| --Izno (talk) 03:37, 16 April 2011 (UTC)[reply]
Owe is it one of those issues Gnevin (talk) 18:43, 20 April 2011 (UTC)[reply]
Uh huh. :| --Izno (talk) 22:26, 20 April 2011 (UTC)[reply]
There is no compelling reason not to allow styling. It has ligitimate uses. Just because some editors abuse it, doesn't mean it should be disabled for the rest. Edokter (talk) — 22:31, 20 April 2011 (UTC)[reply]
You have any examples of these uses? Gnevin (talk) 13:50, 21 April 2011 (UTC)[reply]

Semantic and accesssible list markup

Many thousands of Wikipedia articles have navboxes, in which lists of links are presented, horizontally, without using list mark-up, but instead using {{·}} or suchlike as a kludge. This is semantically poor and has implications for accessibility; not least as every {{·}} is read out as the word "bullet", to blind people using screen-readers.

To remedy that, a group of editors have collaborated to add to Common.css a class called hlist to which is now used by {{Flatlist}}. Here's a sample edit, adding it to a navbox. The visual output should be the same in all modern browsers; this has been widely tested.

The question now, is how best to apply the class to navboxes across Wikipedia? A bot job, obviously, but using {{flatlist}}, or some other mechanism? And are there any issues we should be aware of first? {{flatlist}} can be used with ordinary (UL) or ordered (OL) lists. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 18:37, 22 April 2011 (UTC)[reply]

On IE8 (at least), this does not look good. The bullet is immediately adjacent to the right-most word instead of centered between list elements. I would not want to see this deployed without aesthetic improvements first. — Andrwsc (talk · contribs) 18:53, 22 April 2011 (UTC)[reply]
Odd. Looks good on my IE8, with the exception of a bullet added after te last item. Edokter (talk) — 19:01, 22 April 2011 (UTC)[reply]
Specific CSS issues are best discussed at MediaWiki Talk:Common.css#Horizontal lists. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 19:05, 22 April 2011 (UTC)[reply]
…which you are doing, of course. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 19:24, 22 April 2011 (UTC)[reply]
You may need to do a hard refresh/ clear your cache. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 19:05, 22 April 2011 (UTC)[reply]
Tried that, no effect. I have no custom css etc., just the vanilla wikipedia browsing experience. I see the same effects when I log off. — Andrwsc (talk · contribs) 19:07, 22 April 2011 (UTC)[reply]
Get a proper browser ;-) Seriously, I've just tried IE8, and don't see that spacing problem. Can you try zooming in and out, please, and see if that makes a difference. Again, MediaWiki Talk:Common.css#Horizontal lists is the best place to continue this. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 19:24, 22 April 2011 (UTC)[reply]

See also two related deletion debates. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 19:10, 22 April 2011 (UTC)[reply]

Just wondering if it would be worth adding a |flatlist=yes parameter to the navbox template to allow for an option of making all the lists use the hlist class. -- WOSlinker (talk) 20:22, 22 April 2011 (UTC)[reply]

For example:

{{Navbox/sandbox
|navbar=plain
|title = Example
|group1=Group 1
|list1=
*Item 1
*Item 2
*Item 3
*Item 4
*Item 5
*Item 6
*Item 7
*Item 8
|group2=Group 2
|list2=
*Item 1
*Item 2
*Item 3
*Item 4
*Item 5
*Item 6
*Item 7
*Item 8
}}
It may not need the parameter... How many navboxes do you see that have (vertical) bulleted lists? Just assign the "hlist nomargin" classes to the list cells. Edokter (talk) — 20:27, 22 April 2011 (UTC)[reply]
Template:Navbox with columns comes to mind as a place where vertical lists might be (more properly) used.
On another note, I support this general change. --Izno (talk) 21:24, 22 April 2011 (UTC)[reply]
Hadn't thought of that. Shouldn't be hard to filter out. Edokter (talk) — 22:59, 22 April 2011 (UTC)[reply]

How can we move this forward? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 21:56, 27 April 2011 (UTC)[reply]

We'll get to it. Currently investigating {{navbox with columns}} for use of bulleted lists. Edokter (talk) — 00:52, 29 April 2011 (UTC)[reply]

Any news? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 14:13, 17 May 2011 (UTC)[reply]

Nudge. Andy Mabbett (Pigsonthewing); Andy's talk; Andy's edits 23:30, 24 August 2011 (UTC)[reply]
I would just like to say, I would rather see this named |vlist=yes and just have {{Navbox}} and friends directly implement what {{flatlist}} does without the extra template inclusion by using hlist CSS class by default on lists within |listn= (there is already a <div>...</div> on each one). Anything that uses {{·}} will not have any issues with this default and allows them to (in most cases) be converted in a straightforward manner. 67.210.196.5 (talk) 17:27, 25 September 2011 (UTC)[reply]

Usage of "Show/Hide" Outside Navbox Context

Sorry if I'm posting this in the wrong place, but I'd like to use the show/hide feature of the navbox in another context...I want to have a description of an item in a table that's hidden by default and can be revealed by clicking "show." Jmajeremy (talk) 01:04, 25 May 2011 (UTC)[reply]

I'd think the easy way would be to use the navbox template directly? I'm curious as to what the context is, though. → ROUX  01:06, 25 May 2011 (UTC)[reply]
Here's what I've come up with so far. Not sure if it's "kosher" wikicode, though...
{| class="wikitable sortable"
|-
! Header text !! Header text !! Header text
|-
| {{Navbox|child
    |state=collapsed
    |name=cobra
    |title=The Cobra     
    |navbar=plain
    |basestyle=background:#ffffff;
    |abovestyle=text-align:left;
    |above="hello"
}} || Example || Example
|-
| Example || Example || Example
|-
| Example || Example || Example
|}
Header text Header text Header text
Example Example
Example Example Example
Example Example Example
--Jmajeremy (talk) 03:03, 25 May 2011 (UTC)[reply]
If it works, it's kosher. I'm still trying to understand under what circumstances this would be useful though. What is the purpose of this? → ROUX  03:12, 25 May 2011 (UTC)[reply]
Basically, you can use the show/hide feature on any table by giving it the "collapsible" class. The show/hide link will appear in the first table header. Edokter (talk) — 13:31, 25 May 2011 (UTC)[reply]
{| class="wikitable collapsible"
! colspan="2" | Header
|-
|Cell 1
|Cell 2
|-
|Cell 3
|Cell 4
|}
Header
Cell 1 Cell 2
Cell 3 Cell 4

Proposal to remove the styling options

As above, I see no reason to keep these options . Wiki doesn't allow projects and users to style articles, we don't let users decide that alternation paragraphs on Manchester United are going to be red and white. Nor do we allow users to define the font type or in vast majority of cases the size. Only in templates is this allowed . WP:COLOUR outlines a number of issues with certain colour combinations, template such as Template:Phantom_of_the_Opera and Sons of Anarchy are unreadable to my eyes, while Giovanni_Trapattoni is a multi coloured mess. I can't think of a reason to keep this option other that WP:ILIKEIT Gnevin (talk) 16:00, 16 June 2011 (UTC)[reply]

I've never used these options, but I see no reason to remove them. If particular templates have issues, address them there. --SarekOfVulcan (talk) 16:22, 16 June 2011 (UTC)[reply]
  • Oppose. Just because something can be abused does not mean we should remove it alltogether. Styling is also used to adjust margins and padding in certain cases, especially since this is a meta-template. Removing it would break hundreds of navboxes that do not even use colors. Edokter (talk) — 17:10, 16 June 2011 (UTC)[reply]
  • Oppose - discreet/subtle styling is useful for linking together thematically-related navboxes, providing clues as to their contents. I agree that many are horrifying eyesores, but let's keep the baby when we drain the tub, shall we? → ROUX  17:36, 16 June 2011 (UTC)[reply]
  • Oppose No, people shouldn't be using horrid color combinations in navboxes, but we should not be removing the styling options altogether. Navboxes are used for much more than just articles, and more flexibility should be allowed for projectspace or userspace navboxes. Instead, we should be add to WP:COLOR certain instances when navbox styling is appropriate and not appropriate (e.g., things like padding fixes should be fine, and colors shouldn't be used carelessly). But for many cases, colors are useful for identification. We also have some color elements in infoboxes—perhaps we could standardize things and match them up by subject area? /ƒETCHCOMMS/ 18:11, 16 June 2011 (UTC)[reply]
  • Oppose — Fix abuses as needed but don't remove the features. Before styling was added, editors were using all sorts of horrible hacks to style elements. Perhaps add a class so someone who hates the colors can remove them in personal CSS. -— Gadget850 (Ed) talk 18:19, 16 June 2011 (UTC)[reply]
  • Oppose - Tail wagging the dog. If you are having difficulty with specific stylized templates that expand from this, then raise your concern with them. Otherwise please collect a affirmative response from every usage of this template acknowledging that they're Ok with the removal of the stylizing options. When you are attempting to take some flexibility away from users you really should get consent from everyone as people expect software to work the same unless they've been notified prior to usage about it. Hasteur (talk) 18:43, 16 June 2011 (UTC)[reply]
  • Support the core idea but oppose the methodology. I completely agree that we need to do something about the massive wp:deviations just for the sake of "I like it" and "it looks pretty". However, as has been pointed out above, there these style fields are used for more than just colouring. We should create a task force to try to remove the superfluous deviations in colouring, but, this is something which cannot be simply addressed at the level of this template. Frietjes (talk) 23:23, 16 June 2011 (UTC)[reply]
I've only ever seen the style used for colouring , can you give some examples of the other behavour it addresses Gnevin (talk) 23:46, 16 June 2011 (UTC)[reply]
  • Comment I'd challenge those above to show me a case where the use of the style para has led you to say wow this really improves the project. This isn't about indivual cases I don't like, even perfectly good templates when combined can look terrible and present access issues. This para should improve the project, it doesn't Gnevin (talk) 23:46, 16 June 2011 (UTC)[reply]
    • That's twisting the point. The style parameter doesn't have to make me say "wow". Without it, I would say "ew" if messy margins or widths ensued. Again, I think you're focusing on the wrong thing here: the problem is not the parameter's existence. It is people misusing the parameter or making poor choices with what they put in it. So you should instead be formulating a clear guideline for what is appropriate usage of the parameter. /ƒETCHCOMMS/ 19:53, 17 June 2011 (UTC)[reply]
  • Oppose - Trying to button things down past a certain point leads to stultifying conformity and blandness. Some deviation should be seen as a positive value. It provides wriggle room around the edges for some creativity and diversity; perhaps even a little colour. Wikipedia already has very bland and uninteresting default formats. Take this further and Wikipedia will start looking like something out of an apparatchik's dream (nightmare?). --Epipelagic (talk) 02:02, 17 June 2011 (UTC)[reply]
  • Oppose - While I also prefer standardized colors and styles, I must agree with Edokter that the styling parameters are often used for things other than color, such as width and padding. Removing them would break many hundreds or thousands of templates. --CapitalR (talk) 09:41, 17 June 2011 (UTC)[reply]
  • Oppose per Roux. Unusually, it appears to be snowing in June.—S Marshall T/C 11:01, 17 June 2011 (UTC)[reply]
  • Support the idea Remove the ability for gaudy color choices and implement a non-gaudy color palette throughout, removing the instances of the horrendous color combinations as demonstrated above. The problem with Fix abuses as needed but don't remove the features. is that there are so many instances of the abuse, particularly on sports pages. Perhaps create a task force to remove the superfluous deviations in coloring as suggested above. --Bob (talk) 22:41, 17 June 2011 (UTC)[reply]
  • Comment This parameter is being used for more than colouring as as such removing isn't a realistic option. However I'm still interested in working with those who agreed that this needs to be fixed Gnevin (talk) 00:23, 19 June 2011 (UTC)[reply]
  • Oppose based on everything said in opposition to this proposal, above.
    — V = IR (Talk • Contribs) 05:58, 19 June 2011 (UTC)[reply]
  • Oppose Colorization is quite useful for identification purposes. If a particular navbox's color scheme is horrible, then fix that navbox. --Cybercobra (talk) 22:40, 19 June 2011 (UTC)[reply]
  • Oppose per SarekOfVulcan. And I like the Idea of Gadget850 to add a class so someone who hates the colors can remove them in personal CSS Reo + 13:55, 20 June 2011 (UTC)[reply]
This isn't about people hating colours. Its about improving the project Gnevin (talk) 00:04, 22 June 2011 (UTC)[reply]
  • Oppose while conceding that the Giovanni Trapattoni managerial positions is jarring when opened. I guess I'm one of those sports people that loves them colors, but when I open the championships etc navbox on Diana Taurasi, the colors are a useful guide. Anyone who follows the sport will recognize the National Flag Blue associated with UConn, will recognize the team colors of the Phoenix Mercury, and the red of Spartak Moscow. It may come across as garish to someone who doesn't follow the sport, but most will make sense to people likely to look at it. As an aside, I have a personal rule to create a collapsed navbox whenever the number reaches five, partly to keep potential garishness to a reasonable level.--SPhilbrickT 20:36, 24 June 2011 (UTC)[reply]
  • Oppose if Giovanni Trapattoni is the problem, fix Giovanni Trapattoni, don't try to disable the whole machine because of a few excesses. Justlettersandnumbers (talk) 23:29, 24 June 2011 (UTC)[reply]
  • Oppose - Per SOV and Fetchcomms, also wouldn't this mess up thousands of pages with the template ? Mlpearc powwow 23:43, 24 June 2011 (UTC)[reply]

Suggested guidelines

Wikipedia_talk:Manual_of_Style_(text_formatting)#Colour I've suggested some guidelines, opinions welcome Gnevin (talk) 00:27, 22 June 2011 (UTC)[reply]

Not working despite instructions

I'm in the process of setting up a 1.16 wiki and am trying to copy some of these templates over. I've installed ParserFunctions as well as the provided common.js and common.css (which I know work due to some other templates). Also, I'm using the modified transwiki version which shouldn't require html tidy.

I cannot for the life of me get Navbox to work right. Viewed on my wiki, it appears as:

{


| class="navbox" cellspacing="0" style=";"


|-


| style="padding:2px;"


| {


| cellspacing="0" class="nowraplinks " style="width:100%;background:transparent;color:inherit;;"


|}

Any ideas what my problem is? TheGreatTK 17:37, 20 June 2011 (UTC) — Preceding unsigned comment added by TheGreatTK (talkcontribs)

Do you have an example of what your trying to achieve ? Mlpearc powwow 12:51, 25 June 2011 (UTC)[reply]

added two more examples

titlestyle - a CSS style for the title-bar, Two examples:
Used with Template:Navbox suite: |titlestyle = background:#00529b;color:white;border:2px solid #00529b;
|titlestyle = background:gray;
groupstyle - a CSS style for the group-cells, Two examples:
Used with Template:Navbox suite: |groupstyle = background:#febd10;color:#00529b;border:2px solid #febd10;
|titlestyle = background:#eee;

Errectstapler (talk) 19:11, 17 July 2011 (UTC)[reply]

{{Navbox suite}} does not use these parameters (it was vandalized), so I removed the examples. Edokter (talk) — 19:22, 17 July 2011 (UTC)[reply]

Is there any way to remove the autocollapsible feature in templates based on this one?

Asked in 2008:

== Is there any way to remove the autocollapsible feature in templates based on this one? ==

Please respond on my talk page if you know.`Savidan 17:18, 9 August 2008 (UTC) ...[reply]

|state = plain will not collapse the navbox and hide the show/hide link. EdokterTalk 22:03, 9 August 2008 (UTC)[reply]

Not sure the answer, but |state = plain does not hide the show/hide link.

Any other suggestions, thank you. Errectstapler (talk) 22:50, 17 July 2011 (UTC)[reply]

oh nevermind, |state = plain does work, i had it listed twice and the template only reads the last state line. Errectstapler (talk) 22:55, 17 July 2011 (UTC)[reply]

Latest update

I think the latest update messed up the navboxes containing wrap codes. See this one for example: Template:Dioceses of the_Church of the East.--Rafy talk 15:10, 21 July 2011 (UTC)[reply]

I don't see anything wrong. What is the problem? Edokter (talk) — 15:22, 21 July 2011 (UTC)[reply]
I never had an issue using various Linux distros, but I lately had to use Win7 and I'm unable to view the items on the template with Firefox (Here is a screenshot). They are however visible with Chrome, Opera and IE. Can anyone else confirm this?--Rafy talk 17:32, 21 July 2011 (UTC)[reply]
Shows OK on XP with Firefox 5.0. Edokter (talk) — 19:50, 21 July 2011 (UTC)[reply]
OK on Win7 with Fx 4.0. What browser version are you using? Fx 5 or 4? --Izno (talk) 23:08, 21 July 2011 (UTC)[reply]
Latest stable (5).--Rafy talk 23:26, 21 July 2011 (UTC)[reply]

Child causes HTML error

The use of |child= causes an HTML validation error, for example {{navbox}} Renders as

Which cause an error on this page; see W3C markup validation for Template talk:Navbox. ---— Gadget850 (Ed) talk 01:45, 24 August 2011 (UTC)[reply]

  • I don't think this has anything to do with Navbox. It looks like this is happening for all Vector-skin pages (at least for me). If you look at the source, it appears to be in the Vector menu and is because of an empty <ul></ul> pair. I just tested it out and this happens regardless of whether there's a Navbox or not. I use Monobook by default, and the problem doesn't manifest for that skin. --CapitalR (talk) 00:14, 26 August 2011 (UTC)[reply]
I should have noted that the <ul> issue has been occurring for ages. I did not use a live use of {{navbox}} in my example— this has been updated. The error in question is end tag for "table" which is not finished. ---— Gadget850 (Ed) talk 00:40, 26 August 2011 (UTC)[reply]
It's because if you just use {{navbox|child=xxx}}, you end up with a <table></table> set of tags. If you actually put in some content such as list1=a then the table tags are no longer empty and so pass validation. -- WOSlinker (talk) 07:04, 26 August 2011 (UTC)[reply]
I thought I had tracked it here, but perhaps I'm wrong. Pages that are giving this error:
---— Gadget850 (Ed) talk 11:05, 26 August 2011 (UTC)[reply]
I think this edit has fixed the issue. -- WOSlinker (talk) 11:37, 26 August 2011 (UTC)[reply]
Those pages are still failing validation. ---— Gadget850 (Ed) talk 11:44, 26 August 2011 (UTC)[reply]
Probably just due to cacheing. I've purged the pages and I'm only seeing the two ul errors myself. -- WOSlinker (talk) 12:53, 26 August 2011 (UTC)[reply]
 Fixed That did it. Thanks. ---— Gadget850 (Ed) talk 13:09, 26 August 2011 (UTC)[reply]

Help importing this template to the spanish wiki

There's a watered down version of this template in the spanish wiki, but in order to use the "subgroup" template, you must have the english wikipedia code of the navbox template. I've been trying to copy and paste the code from this wikipedia, to the spanish wiki. It works, sort of though... here's an examlple: es:Plantilla:Navegación/núcleo2/test, I haven't figured out yet what's not working properly... and I can't seem to fix it. The "subgroup" template in the spanish wiki is a direct copy from the english wiki... so basically both the navbox and subgroup codes are identical (I deleted the navbar code, but even if left on, the same problem occurs).

Navbar code in the spanish wiki: es:Plantilla:Navegación/núcleo2
Subgroup code in the spanish wiki: es:Plantilla:Navegación/subgrupo.

The code I'm using in the "test" is also a direct copy from the enlgish wiki.

Am I doing something wrong? Or is it that the spanish wiki doesn't support some parts of the code? Thanks for your time. --MindZiper (talk) 00:31, 26 September 2011 (UTC)[reply]

Is there a way to import the code needed for the navbox into the spanish wiki? I don't seem to find any "link" that directs to that code in particular within the navbox code. EDIT: I think I got it. --MindZiper (talk) 01:32, 27 September 2011 (UTC)[reply]

Flatlist problems

A template I watch was recently converted to flatlist. When viewed in any version of IE, it creates several problems, most notably the major misalignment of the dots and the addition of an extra dot after the end of the list (example below). Can anyone help solve this? Unfortunately the only answers I've had so far is to question why I've chosen to use the wrong browser (IE, the most commonly used one in the world), to have to switch to compatibility view (which works, but I don't see why readers should have to do this, and it isn't available on older versions of IE), and to say that Microsoft should solve the problem. In the meantime I've been told to just put up with the problem rather than revert to the issue-free version - is this acceptable? Number 57 08:55, 1 October 2011 (UTC)[reply]

Which version of IE do you use? I've just tried Template:Edmonton elections in IE 8 & 9 and it looks fire for me. -- WOSlinker (talk) 09:24, 1 October 2011 (UTC)[reply]
It has the problem when viewed in IE8 on Win XP. GraemeLeggett (talk) 09:29, 1 October 2011 (UTC)[reply]
Except for the trailing dots (due to IE's lack of support for :last-child), I see no allignment issues on IE8 (XP), except when enabling compatibility view. Edokter (talk) — 10:10, 1 October 2011 (UTC)[reply]
This is how it displays in IE8 and compatibility mode doesn't help much.
Template as displayed in Internet Explorer 8
However IE9 in compatibility mode is more standards-compliant, i.e. it understands the :last-child css selector and can format the last item in a list as required. However, IE9 requires a HTML5 doctype declaration to automatically change to compatibility mode, so you have to click the button manually.
Template as displayed in Internet Explorer 9 with compatibility mode turned on
The so-called "issue-free version" is the one where Number 57 has no issues, but all of our visually-impaired visitors have to hear things like "1892, dot, 1893, dot ..." etc. It doesn't meet our standards for accessibility, and I'm disappointed that Number 57 prefers to force that version on disabled visitors rather than click a button or use a standards-compatible browser. I'm sorry he doesn't like the replies he's had from me, but it would be far better to seek a consensus than to edit-war to impose a preferred version. Perhaps others here can suggest possibilities that would address both the issues of accessibility and Number 57's concerns? --RexxS (talk) 10:31, 1 October 2011 (UTC)[reply]
Just read the WP:Accessibility notes and in referring to templates such lists may be styled with the class "horizontal". Not being up on the coding, what would that do if used instead of flatlist in this case?
Sadly, it won't help because {{Flatlist}} is effectively a convenience to apply the class .hlist (an updated version of class .horizontal) to a list, to save editors from having to deal with classes. The problem is that our css definition of the class .hlist in MediaWiki:Common.css relies on a css feature to identify the last item in a list and suppress the image of the dot. Microsoft failed to implement that feature until version 9 of Internet Explorer, although it has been available in all the other common browsers for some considerable time. It is a problem that will go away eventually as Microsoft brings its browser into line with universally accepted web standards. In the meantime, any ideas for avoiding problems such as concern Number 57 would be welcome, as long as they don't sacrifice accessibility for disabled viewers. One earlier suggestion for {{Flatlist}} was to put the dot before each item and suppress the dot on the first item (Internet Explorer 7 & 8 are capable of selecting the first item, but not the last!). However, this had the undesirable effect, when a long list wrapped onto a new line, of having the new line start with a dot – and consensus went against that. --RexxS (talk) 12:25, 1 October 2011 (UTC)[reply]
"selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8. Simply include the script in your pages and selectivizr will do the rest." :last-child is listed. Might be worth checking out. ---— Gadget850 (Ed) talk 13:41, 1 October 2011 (UTC)[reply]
This may work, but I think it is the wrong kind of solution. We should not be telling readers/editors to download special scripts so they can see things correctly - we should make templates that everyone can view correctly regardless of their browser type. Number 57 22:15, 1 October 2011 (UTC)[reply]
Readers/editors wouldn't need to. But I believe we should not depend on scripts too much. Personally, I still favor putting the bullet in front of the items; it is a list after all. So I think we need to explore that option again. Edokter (talk) — 22:20, 1 October 2011 (UTC)[reply]
I just saw Template talk:Flatlist#Viewing problems, just below a prior suggestion I'd made: Template talk:Flatlist#Nested list, again. Issues with Internet Explorer are common, as it is known for quirky behavior and poor CSS support. This seems a minor rendering issue with a buggy (and obstinant) browser, really. The accessibility benefits of flatlist far outweigh a few off-pixels. IE users have options: Incompatibility mode, to downloading a better browser. Beyond the vision impaired, there are many sighted mobile users that benefit from nav-lists /being/ lists, as flatlist offers.
FYI, the /Nested list, again/ suggestion I made was about getting pseudo-groups (i.e. nested lists) to work inline using .hlist li ul { display: inline; }; help with that idea would be appreciated. It would also be nice to get the nowrap adjusted to make whole li-tags not wrap — things like "* book title (year)". Something like: .hlist li { white-space: nowrap; }.
I'd be wary of putting the middots /before/ items as these are really interpunct, not bullets; such punctuation logically follows, not precedes. Dots at the beginning of wrapped lines would be unfortunate. The padding/margin values used w/flatlist may be able to be tweaked to get more consistent rendering—if so, fine—but deployment of flatlist should not be thwarted.  —Portuguese Man o' War 23:09, 1 October 2011 (UTC)[reply]
I fail to understand why some editors think the answer is to tell others that they need to download a new browser because some changes they've made don't work in IE - it smacks or smugness and arrogance. Like it or not, IE is the most common browser used, and you can't ask over 40% of internet users to change their browser because someone can't get the code to work. Number 57 23:24, 1 October 2011 (UTC)[reply]