Template talk:Navbox

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Redundant whitespace[edit]

Hello! Please have a look at the {{Virtualization software}} template, which has a short triple-level list that produces redundant whitespace between closing brackets, after Virtuozzo and before FreeBSD jail (see also a screenshot). That whitespace seems redundant to me, not like something intentional, and the logic of {{Navbox}} template should be fixed not to produce such whitespace. — Dsimic (talk | contribs) 08:44, 4 July 2016 (UTC)

Dsimic, are you sure it's a navbox issue and not a horizontal list issue? the styling of multi-level horizontal lists is controlled by MediaWiki:Common.css. Frietjes (talk) 20:42, 15 July 2016 (UTC)
This is an unavoidable artifact of browser suckage. --Izno (talk) 21:55, 15 July 2016 (UTC)

.navbox related common.css edit request[edit]

Just a heads up, I'm putting up an edit request for MediaWiki:Common.css shortly for the benefit of {{Portal bar}}, but the edit involves .navbox selectors. Old revision of User:Matt Fitzpatrick/common.css summarizes the edit request. The new CSS should resolve visual discrepancies in Template:Portal bar/testcases, but should not affect any part of Template:Navbox/testcases. Please let me know if you notice anything's gone wrong. Matt Fitzpatrick (talk) 23:20, 14 July 2016 (UTC)

auto width broken[edit]

Just a heads up. It was reported at Wikipedia:Village pump (technical)#Long navbox template that my recent edit to Module:Navbox broke |style=width:auto.

  • One fix is display:table on the div wrapper, which would be super easy, but would not work in IE6-7.
  • Another fix is a new parameter to get the same visual effect, which may or may not work for IE6-7, will have to mess around in the sandbox tonight to see.

Any other ideas? Matt Fitzpatrick (talk) 22:20, 17 July 2016 (UTC)

In the specific case of {{Events by month links/box}}, rewriting the table dependent |style=width:auto; min-width:35em; as |style=margin-left:auto; margin-right:auto; width:36em; |style=width:36em; seems to fix the issue. Maybe this could also be a general solution for similar "width:auto" templates? Matt Fitzpatrick (talk) 22:44, 17 July 2016 (UTC)
Edit: Deleted margin declarations, redundant with common.css. Matt Fitzpatrick (talk) 04:10, 18 July 2016 (UTC)

Copying/translating a template from another wiki[edit]

I want to create an English version of fr:Modèle:Palette Grottes ornées. What's the best way to go about this? I should be able to deal with the translation issues, it's the technical issues I need help with. Thanks. Doug Weller talk 14:15, 24 July 2016 (UTC)

I've ported over the template syntax at Draft:Navbox_prehistoric_caves, so should just be a case of translating the text. Joe Roe (talk) 19:13, 24 July 2016 (UTC)
Fantastic. Doug Weller talk 14:57, 25 July 2016 (UTC)

Template-protected edit request on 29 July 2016[edit]

Hi! Some fellow Wikipedians asked me to help them create the "Navbox prehistoric caves", a draft is HERE. Predictably the navbox will grow soon and as far as i have read, the maximum number of groups that can be created is 20. Is there a more suitable template out there or can there an alternative Navbox be made, that does not restrict the number of goups? ATB Wikirictor (talk) 16:05, 29 July 2016 (UTC)

Wikirictor (talk) 16:05, 29 July 2016 (UTC)

You should consider re-structuring your navbox. A navbox of more than 20 groups is unlikely to provide the navigation desired by the common reader. I have some draft navboxes for musicians at User:Natalie.Desautels/sandbox/Classical and flamenco guitar templates#Modern era which might inform a navbox which doesn't need 20 groups for navigation. (Aside: The pictures should go since they don't aid in navigation and the flags should go per WP:MOSFLAG.) --Izno (talk) 16:17, 29 July 2016 (UTC)
Also, X mark.svg Not done on your edit request. Though your desire is probably reasonable in some sense, it does not have consensus for a template under massive use. Please establish such a consensus. --Izno (talk) 16:18, 29 July 2016 (UTC)
Thanks for your clarifications. I will pass on your advice. ATBWikirictor (talk) 17:46, 29 July 2016 (UTC)

Wikirictor, In addition to Izno's comments...
  • Would it help to split it into "Navbox prehistoric caves/Africa", "Navbox prehistoric caves/Asia"... and set "Navbox prehistoric caves" to transclude them?
  • For specific help, and to ensure your efforts are consistent with other efforts, check at Wikipedia:WikiProject Anthropology and Wikipedia:WikiProject Archaeology. Have a look at how other articles & templates in that project area handle the problem. Both projects have an assessment tables that link to the templates in the project's scope.
  • The first link from your navbox I tried was to Abîme, a generic geographical term rather than an actual location. You need to take care and double check all the links you're providing.
  • Bear in mind, the purpose of a navbox is to assist in navigation. Keep your navbox to the essentials to serve that purpose and it'll more likely gain acceptance and widespread usage.
Hope that helps, for (;;) (talk) 16:36, 29 July 2016 (UTC)
Thanks a lot for your support and suggestions - i will pass these on as well. ATBWikirictor (talk) 17:51, 29 July 2016 (UTC)
Wikirictor, have you actually tried adding more than 20 groups? -- WOSlinker (talk) 17:41, 29 July 2016 (UTC)
Do you mean adding these above tags or an actual 21st group. Yes, tried the latter and it did not work. Thanks a lot anyway for your (and the others) quick and competent help. I will check out your snippet.ATBWikirictor (talk) 17:58, 29 July 2016 (UTC)
Wikirictor, {{Navbox subgroup}} is limited to 20 but {{Navbox}} is not. You can use Navbox with the |border=child option instead of Navbox subgroup. -- WOSlinker (talk) 19:33, 29 July 2016 (UTC)

width of the 'group' column[edit]

Please add a feature to adjust the width of the 'group' column, so that it won't be too narrow in some cases.--水水 (talk) 08:21, 28 September 2016 (UTC)

@水水: Have you tried the |groupwidth=9em option (adjust width to taste, and always use "em" sizes, so that it should adjust to minor variations in user fonts)? The normal use of that option is when you have multiple child navboxes, to match group width across them, e.g. Template:British Rail Coaches. Also, it might help to see an example where it is "too narrow", as it mostly works fairly well without specifying that (at least for reasonably simple and normal navboxes on English Wikipedia). Murph9000 (talk) 08:55, 28 September 2016 (UTC)
Thanks.--水水 (talk) 09:39, 28 September 2016 (UTC)

Empty navbox[edit]

Hello. Is it possible returning the navbox only if there is data? For example in {{Navbox with columns}} or in es:plantilla:Bases de datos taxonómicas:

Thanks, Juan Mayordomo (talk) 19:21, 14 October 2016 (UTC)