Jump to content

Template talk:Navbox/Flow

About this board

Navbox/style.css is loaded in mobile view

6
ネイ (talkcontribs)

@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)?

Izno (talkcontribs)

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.

ネイ (talkcontribs)

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.

ネイ (talkcontribs)

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.

Izno (talkcontribs)

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 (talkcontribs)

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.

Reply to "Navbox/style.css is loaded in mobile view"
Krinkle (talkcontribs)
Reply to "Duplicate bullets"

Make links translatable

3
Shirayuki (talkcontribs)

Make the following links translatable! : "view", "talk", and "edit"

Edokter (talkcontribs)

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.

Shirayuki (talkcontribs)

Make links translatable.

Reply to "Make links translatable"

Problem with mobile-view.

2
202.67.36.5 (talkcontribs)

Is there an update of this version? The navbox is just not working or simply vanish in browser mobile-view mode

Hermesed (talkcontribs)

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

Reply to "Problem with mobile-view."

View/talk/edit links point to wrong pages

1
Summary by Shirayuki

Yes Done by adding name in Template:Social tools

Shirayuki (talkcontribs)
Nahiyan8 (talkcontribs)

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>

I haven't spotted anything that might be specific to anything here, so I suppose everyone agrees?

This post was posted by Nahiyan8, but signed as Nahiyan.

MZMcBride (talkcontribs)

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.

Reply to "Conversion to use Module:Navbox"
There are no older topics