Template talk:Navbox

From Wikipedia, the free encyclopedia
  (Redirected from Template talk:Navbox/doc)
Jump to: navigation, search

Alternatives for mobile users?[edit]

Navboxes and other templates using the navbox or vertical-navbox attributes are not displayed on the Mobile Web site for Wikipedia, which accounts for approximately 45% of readers. - From the main article, May 2016.

Are there any alternatives to Navbox that have similar functionality/layout, but are supported on Mobiles? I'm looking for something to use on an independent wiki, and our mobile users are likely to be 60-80%. juckto (talk) 00:21, 6 May 2016 (UTC)

The only reason mobile doesn't support it is because it's removed from mobile CSS. You should be able to re-add it just by tweaking your CSS. --Izno (talk) 00:37, 6 May 2016 (UTC)

Is HTML Tidy actually required?[edit]

The documentation says this template requires HTML Tidy to be turned on. However I've found a conversation in the archives that says it's not actually required anymore (though it's quite old, ~2011) and there are a few other similar and older discussions with mixed conclusions. So I was wondering if the current version does still have this requirement in order to be ported over other projects/wikis. Thank you. (talk) 19:19, 6 May 2016 (UTC)

I don't think anyone really knows right now, but if you find it is no longer required, then please report back, so that this statement can be removed. —TheDJ (talkcontribs) 19:28, 6 May 2016 (UTC)

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)