Template talk:Navbox


Conversion to use Module:Navbox

It's no doubt that the module is absolutely superior to this bulky code using ParserFunctions. I'm suggesting replacing it with:


<includeonly>{{#invoke:Navbox|navbox}}</includeonly><noinclude>
{{Documentation}}
</noinclude>
</pre>

I haven't spotted anything that might be specific to anything here, so I suppose everyone agrees? -- Nahiyan (talk | contribs) 04:15, 22 November 2014 (UTC)
As long as there are no regressions, I say be bold! Though the usual caveat applies: if there is breakage, you'll be responsible for either fixing it or we'll need to revert. :-)
Nice edit summaries when importing modules from the English Wikipedia, by the way. MZMcBride (talk) 12:53, 22 November 2014 (UTC)
Make the following links translatable! : "view", "talk", and "edit" Shirayuki (talk) 11:41, 6 April 2015 (UTC)
That requires updating Module:Navbar. The old template was not translated, so why do you keep reverting navbox? I'll ask on en.wiki what needs to be done. -- [[User:Edokter]] {{talk}} 14:07, 6 April 2015 (UTC)
Make links translatable. Shirayuki (talk) 12:29, 5 October 2019 (UTC)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


View/talk/edit links point to wrong pages. For example, Extension:WikiForum has v・t・e links. They should point to not Template:Navbox but Template:Social tools.

Make View/talk/edit links translatable. Shirayuki (talk) 00:49, 23 November 2018 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem with mobile-view.

Is there an update of this version? The navbox is just not working or simply vanish in browser mobile-view mode 202.67.36.5 (talk) 04:02, 18 July 2019 (UTC)

it's a failure for programmer that can't balanced the user experiences between Mobile view and Laptop/PC view.
Many wikis use this template to just ended up having the navbox disappear in mobile view. Some wiki even has to do complex table coding because this one doesn't work well for mobile.
Complete disappointment. you simply didn't care about the mobile view user-experiences. Hope there will be a revision of this navbox Hermesed (talk) 04:12, 18 July 2019 (UTC)

Duplicate bullets

@Shirayuki It seems the last edit to start use of styles.css has caused duplicate bullets to appear on pages such as Wikimedia Technical Committee/Minutes/2020-09-16

See F32352926 for an example. See also MediaWiki:Gadget-site.css where the main styles for this template currently reside. Krinkle (talk) 23:23, 16 September 2020 (UTC)

@Izno Though Navbox is stripped off from mobile view, Module:Navbox/styles.css is still loaded in pages where Navbox is used. Is there a way to not load the TemplateStyles when Navbox is stripped off (not displayed)? ネイ (talk) 16:06, 19 August 2021 (UTC)

I think you could wrap the TemplateStyles tag with something like <div class="nomobile">. The module needs to be adjusted to do the same thing for all the templatestyles tags. This would be fairly easy. I have seen this issue noted on Phabricator somewhere.
I am not totally sure there is a lot of benefit to this.
  1. The CSS doesn't weigh very much in total. That's just my opinion I guess.
  2. At some point, navboxes may not be stripped out of mobile, so that's an additional change that would need to be made to undo these changes.
On the other hand, wrapping the TemplateStyles in something like that might also make it easier to do the "single border" CSS that is currently worked around by lots of link and style tags, at least in this module. Izno (talk) 19:21, 19 August 2021 (UTC)
I will test whether nomobile works.
The concern here is that, while we no longer load the styles in desktop view when navbox is not used, we add the styles to mobile view when navbox is used (but stripped out). So the benefit of reduced page size in desktop view is cancelled out by increased page size in mobile view. I do agree that making this change means one more fix to be applied when navboxes are no longer stripped out. ネイ (talk) 02:09, 20 August 2021 (UTC)
The change in Special:Diff/4775222 works. Doing the same for all TemplateStyles in Navbox could avoid the increased page size issue in mobile view. ネイ (talk) 10:27, 22 August 2021 (UTC)
Yeah, it probably works, but there's still a problem in that the "single border" negative margin doesn't work because one of the style tags (that shouldn't be there anyway) is getting fostered above the navbox element. I haven't figured out how to take care of that yet. Izno (talk) 15:35, 22 August 2021 (UTC)
Ok, I figured out, it was a problem with the sandbox version of the template.
Now live here. You'll want to make an adjustment to your /styles.css as well possibly for the + selector rules. Izno (talk) 18:18, 23 August 2021 (UTC)