Severity: Notice
Message: Undefined offset: 1
Filename: infosekolah/leftmenudasboard.php
Line Number: 33
Line Number: 34
{{navbox |group1=Foo |list1= * Lots of items... * Numbers ** 1 ** 2 }}
has (at least) 5 possible places to create a linebreak:
The last version is bad, because the context for the sublist is lost by the time the reader drags their eyes over to it. Nevertheless, navbox lines can (and do) break there.
{{hlist}} may suffer from the same problem (or even originate it). I think some clever CSS hackery can prevent a linebreak before the sublist, but I know neither how to do it, nor how to read/write Lua.
Thanks, Bernanke's Crossbow (talk) 15:22, 24 September 2023 (UTC)
*[[Organophosphine|Phosphine]] ([[Phosphonium]])
The two navboxes at Family tree of Japanese monarchs are not displaying correctly, and are just showing up as anchor links to #invoke:Navbox --YodinT 13:32, 13 October 2023 (UTC)
Would it be possible to request an edit to line 452, to change local gfind = string.gfind to local gfind = string.gmatch?
local gfind = string.gfind
local gfind = string.gmatch
It seems that string.gfind is obsoleted in Lua 5.1 (though obviously still available functioning 5.1.5 that the wiki farm is running) and has been renamed to string.gmatch.
string.gfind
string.gmatch
While the code works under Lua 5.1.5, it fails under luajit (which a number of large MW installations use), which is (I believe) 100% compatible with Lua 5.1, though I guess the "obsoleted" features aren't considered in that context? Mahmoud (talk) 20:43, 27 November 2023 (UTC)
Hello, It would be Good if the Colors used in the Navboxes are following Web Content Accessibility Guidelines Compliance. J.Stalin S Talk 04:21, 30 November 2023 (UTC)
Helloo! I want to ask one question about parameters which appear in Navbox and written in Module:Navbox/configuration. I wanted to localise it to KazWiki, and I did it, it's work with kazakh parameters, but i want to add English parameters too, because we have templates which use english parameters also. I tried do, but it's not work, you can watch it here. --Amangeldi Mukhamejan (talk) 09:52, 8 October 2023 (UTC)
Is the evenodd parameter actually still needed for anything after this edit to the module in 2017 (relevant discussion)? 「ディノ奴千?!」☎ Dinoguy1000 11:29, 15 December 2023 (UTC)
evenodd
It seems this module adds the autocollapse class. autocollapse is defined in MediaWiki:Common.js. It's unclear to me why it doesn't add mw-collapsed instead which is part of MediaWiki?Edit: just noticed this note in Common.js: "deprecated Since MediaWiki 1.20: Use class="mw-collapsible" instead which is supported in MediaWiki core. Shimmable since MediaWiki 1.32"Edit2: I'm not reading right and I get it now. For reference: collapsible is deprecated in favor of mw-collapsible and collapsed is deprecated in favor of mw-collapsed. The function of autocollapse in common.js is specifically to collapse the element only if more than one collapse element exists on the page. So if a page has only one navbox and no other collapsible elements, the navbox will be uncollapsed by default. But if another navbox is added, both will be collapsed by default.While I see why this can be desired, I think it's also rather confusing, making navboxes act differently depending on the presence of other elements on the page. — Alexis Jazz (talk or ping me) 20:27, 4 September 2023 (UTC)
autocollapse
mw-collapsed
collapsible
mw-collapsible
collapsed
|state=
|state=expanded
state=collapsed
state=expanded
state
(For background, see Wikipedia:Help desk#Removing a bullet from a template)
In the example above, a bullet is (incorrectly?) rendered after list 2.1a but not after list 1.1a. This may be a MediaWiki bug; viewing this with Parsoid shows no bullet after either. LittlePuppers (talk) 23:46, 19 February 2024 (UTC)
<ul>...</ul>
You are invited to join the discussion at Template talk:Southern California Intercollegiate Athletic Conference navbox § Night mode compatibility?. Sdkb talk 19:43, 14 May 2024 (UTC)
|answered=
The navbox styled in Module:Navbar/styles.css uses a color contrast for links that doesn't pass AA guidelines for small text.
Please consider adding the following rule or similar:
.navbar a { color: #1C376D; } .navbar a:visited { color: #423168; }
? Jdlrobson (talk) 04:37, 2 February 2024 (UTC)
.navbox-title { background-color: #ccf; /* Level 1 color */ }
Current blocks of colors that need adjustment:
.navbox-title { background-color: #ccf; /* Level 1 color */ } .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title { background-color: #ddf; /* Level 2 color */ } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background-color: #e6e6ff; /* Level 3 color */ }
Izno (talk) 02:35, 23 February 2024 (UTC)
And the current link colors in Vector 22 are:
Izno (talk) 02:46, 23 February 2024 (UTC)
Not inspiring! :) Izno (talk) 01:04, 24 February 2024 (UTC)
How so?
Use a different link color e.g. black or white (consider underlining the link or adding an icon to make it more obvious it's clickable)
Move the link out of the box.
Put the link itself in a box with a white background
Here's something grey. Visited colors against it are 4.0, 4.46, and 4.7. Our "upper bound" is f7f7f7 which is the grey used for the alternating row color. #eee is the darkest we can start if we want to hit 4.5 against visited.
I doubt keeping any colors is remotely possible.
Izno (talk) 22:13, 25 February 2024 (UTC)
Some other choices would be ditching our triple colors by making groups and titles all the same color and subgroups one color off, as well as nixing the alternating row color (which I would guess no-one can tell is missing these days with how monitors are built). Ditching the alternating colors would make the module simpler, but is much less of a win. I suspect implementing a set of these options is best. Izno (talk) 22:16, 25 February 2024 (UTC)
For what it's worth, this template appears to be causing any page using a navbox to be tagged by a new linting rule that tries to identify background colors without an explicit text color. {{Bolvadin District}}, for example, shows three instances (I hesitate to call them errors) on its Page Information page; I think the instances are in the V/T/E section of the template. I have been told that using a URL like https://en.wikipedia.org/wiki/Template:Bolvadin_District?vectornightmode=1 is supposed to show what the page looks like in night mode. For me, ironically, the navbox is the only part of the page that looks reasonable, although it displays in regular, not night, mode; almost everything else on the page is a bunch of blue on black or black on black, so I don't know if night mode has reached a development state in which adding explicit colors will show a useful improvement.
I don't know if there is any action needed here, but it might be worth a discussion either here or in a new subsection of the original linked discussion. – Jonesey95 (talk) 05:17, 23 March 2024 (UTC)
Changing the colors is feasible but fails to meet other expectations of links that also pertain to accessibility (namely, that people know it's a link, which is a far broader issue for users) and makes an inconsistent UI to boot.
.navbar abbr { background:none transparent;border:none;box-shadow:none;padding:0; }
color
Assuming I didn't overlook some problem (though the testcases look fine), please copy the changes in Special:Diff/1235534036 to Module:Navbox. This conditionally loads Module:Navbar only when the navbar will actually be displayed (i.e. when |navbar= is not used, basically). I'm aware that I could make this change myself, but it's beyond what I'm comfortable doing on Module:Navbox, even with testcases all looking good, so I'd appreciate someone double-checking the actual change first. It's surprisingly hard keeping "navbox" and "navbar" straight when you're talking about them both... 「ディノ奴千?!」☎ Dinoguy1000 19:53, 19 July 2024 (UTC)
|navbar=
display: none
When editing a navbox, anything that is NOT a link is grey text on a white background. It was not this way before. Does anyone know how to fix this? --Jax 0677 (talk) 22:20, 23 July 2024 (UTC)
proposed fix
The following fix should address the issue described here. I do have edit rights but wanted a second opinion before applying these change.
The issue occurs because a mixture of things:
My proposed fix is to do this on the template level.
An alternative I considered was to add another !important rule in MediaWiki:Vector-2022.css but I think it is preferable that the fix lives in the navbox styles. Hopefully on the long term we can move the color stripping in WikimediaMessages into the Navbox template itself and this will all be easier to follow. 🐸 Jdlrobson (talk) 18:57, 22 July 2024 (UTC)
In dark mode, for all navboxes, the border looks like this: Is there a way to fix this so that the borders appear correctly? It's a minor thing but one that affects a lot of articles. — Qwerfjkltalk 11:32, 7 August 2024 (UTC)
Lots of articles exceed the post-expand include size limit due to navboxes taking up a huge amount of bytes. A lot of this is caused by navboxes that include child navboxes, because nesting a navbox template inside another navbox template causes the inner navbox to be counted twice towards the limit (and if you are using the template instead of the module directly, it actually counts 4x). To alleviate this, I have modified Module:Navbox/sandbox to allow child navboxes to be added without having to add an additional template call or module invocation. For example, instead of
{{Navbox | name = {{subst:PAGENAME}} | title = Title | list1 = {{Navbox|child | group1 = Group1.1 | list1 = List1 }} | list2 = {{Navbox|child | group1 = Group2.1 | list1 = List1 }} }}
You could do
{{Navbox | name = {{subst:PAGENAME}} | title = Title | list1 = child | list1_group1 = Group1.1 | list1_list1 = List1 | list2 = child | list2_group1 = Group2.1 | list2_list1 = List1 }}
The code only kicks in if the text of list# is the "child" keyword AND at least one parameter is specified that starts with "list#_". The result is a drastically smaller post-expand include size and, in my opinion, easier to read code. Of course, the old method, or a combination of the two, still works, as demonstrated at User:Ahecht/sandbox4. Any thoughts before I make a formal edit request? --Ahecht (TALKPAGE) 20:08, 30 July 2024 (UTC)
list1.1
group1.1
child
group1.4
list1.4
group1style.4
image.4
group4.1
list4.1
group4style.1
image4
4.group1
4.list1
listnums
list#
listx_listy
list1_group1_list1_group1_list1_group1
list1_list1_list1_group1
list1_list1
child1_list1
subgroup1_list1
1_list1
subgroup
|type=
|1_type=
keyword.with_collapsible_groups
keyword.with_columns
|1_border=
|list1=[child/subgroup]
|list1=subgroup
|1_border=subgroup
|1_navbar=plain
{{#invoke:NavboxV2|navbox|list1=subgroup|1_list1=List 1}}
{{#invoke:NavboxV2|navbox|list1={{#invoke:NavboxV2|navbox|border=subgroup|navbar=plain|list1=List 1}}}}
listN=child
border
Hello all,
I didn't want to be too WP:BOLD and remove the information stating that the template is not visible on mobile, although I checked just a second ago and it is. I also checked the Phab report linked in the header as part of an edit to another page and it seems that the issue has been at least partially resolved.
If someone would be willing to update the page to reflect recent changes, or alternatively tell me that I'm completely wrong lol, let me know!
JuxtaposedJacob (talk) | :) | 01:10, 18 October 2024 (UTC)
The [show] and [hide] buttons in the title bar have the pale, external link color on the original Vector skin. They're the only ones with this problem. Please fix this. 89.172.154.11 (talk) 21:11, 27 December 2024 (UTC)
So I'm just wondering, like for example, can I edit a navbox template to add a horizontal subheader? Like something similar to "above" or "below", except that I can insert it into the middle of the template or anywhere else. Do you understand what I mean? I tried to read about how to use the navbox template with collapsible subsections, but it just confused the hell out of me. AHI-3000 (talk) 05:23, 31 December 2024 (UTC)
listX
groupX
|stateX=off
|groupX=
This template is using ids apparently for aria-labelledby. The ids are the arguments title, above or group1. This causes issues when more than one template is used on a page with the same title. Those pages end up on Special:LintErrors/duplicate-ids, which is currently unsupported by Parsoid, the new parser. I am not convinced these ids are necessary. Could it just have an accessible label and no id, instead of using aria-labelledby? Snævar (talk) 18:42, 26 November 2024 (UTC)
So what's up with {{IPA navigation}}? Is the stripping of TemplateStyles a bug on the module's part? Is there no workaround? Nardog (talk) 15:30, 3 January 2025 (UTC)
hiding_templatestyles
<div class="navbox-styles">...</div>
I'd like to revisit merging Module:Navbox, Module:Navbox with collapsible groups, and Module:Navbox with columns, as discussed in #Directly render child navboxes, now that the dust has had time to settle on those changes and the implementation of Module:Navbox with columns.
Module:Navbox/sandbox is currently set up to serve as the backend for all three templates. This has the advantage of keeping the code and configuration files in one place, so that it's easier to maintain consistency between the three, and allows for nesting one type of navbox inside another using the |type= (or |1_type=) parameter. It also allows replacing a call to {{navbox with columns}} or {{navbox with collapsible groups}} with {{#invoke:navbox|with columns}} or {{#invoke:navbox|with collapsible groups}}.
The downside is that Module:Navbox gets larger and somewhat harder to navigate, but I think the reuse of the helper functions makes it worth it.
Thoughts? --Ahecht (TALKPAGE) 21:35, 7 January 2025 (UTC)
When {{Military navigation}} is invoked, it ends up invoking Module:navbox which produces the error "Lua error in Module:Navbox at line 192: attempt to concatenate field 'argHash' (a nil value).". This is true even on the Module:Military_navigation page. What is causing this error? -- mikeblas (talk) 19:42, 22 January 2025 (UTC)
Since the default styles (bodystyle, basestyle, titlestyle, etc.) set background colors but do not set text colors, using this template creates Lint Errors. Please fix. Rob Kelk 23:14, 30 January 2025 (UTC)