Share to: share facebook share twitter share wa share telegram print page

Template talk:Navbox

Fix a typo

I propose to change text at line 114, as it seems like a typo:

colhfooterstyle = 'colfooterstyle',
+
colfooterstyle = 'colfooterstyle',

Repakr (talk) 15:39, 17 June 2025 (UTC)[reply]

@Ahecht: since you poked at this merge. Izno (talk) 19:26, 17 June 2025 (UTC)[reply]
@Repakr and Izno:  Done --Ahecht (TALK
PAGE
)
20:06, 17 June 2025 (UTC)[reply]

I’m having an issue with the navbox that’s quite frustrating. I’m unsure how to fix it, or if it’s an unresolved problem with the template.

The issue occurs when a page redirection is created. When you go to the redirected article, the title doesn’t appear in bold black in the navbox. You have to manually update the name to the new redirected title in the navbox for it to display correctly. Is there a way to resolve this? Perhaps a bot task or something similar? Thank you Riad Salih (talk) 12:18, 23 June 2025 (UTC)[reply]

Please link to an example page. – Jonesey95 (talk) 14:06, 23 June 2025 (UTC)[reply]
For example, here is Yaghmurasen ibn Zyan. In the navbox, the link is Yaghmurasen Ibn Zyan (with a capital 'I' instead of a lowercase 'i' in 'Ibn'). The title isn't in bold. Riad Salih (talk) 14:09, 23 June 2025 (UTC)[reply]
This is not a problem with the navbox template. This appears to be basic rendering behavior in the Wikimedia software. You can submit a bug via Phabricator if you want. Until the behavior changes, the only way to make the link render in bold is to change the link to the actual title of the target article, like this. – Jonesey95 (talk) 18:52, 23 June 2025 (UTC)[reply]
I think it would be difficult to get consensus for a bot task. Some people are very particular about what links are presented.
Yes, this is something you have to fix when someone moves a page. I have some CSS that will illuminate redirects in navboxes. Izno (talk) 20:06, 23 June 2025 (UTC)[reply]
@Izno Thanks! Can I check the CSS? Maybe I will start using it on all the navbox I create. Riad Salih (talk) 21:27, 23 June 2025 (UTC)[reply]
Uh, no, please don't use it in navboxes. If you want it for personal use, it's at User:Izno/common.css#L-16. Izno (talk) 21:44, 23 June 2025 (UTC)[reply]

Visual defect in dark appearance

In the dark appearance, every other "group" has a distracting bright line to its left and top. I suspect this is not intentional. 71.70.166.171 (talk) 01:42, 8 July 2025 (UTC)[reply]

This issue is related to T395828 from last month and before that, T365330 from May 2024, both still open. See also this discussion from May 2025 and before that, this discussion from October 2024. – Jonesey95 (talk) 05:19, 8 July 2025 (UTC)[reply]

"add template to favorites"

3.49:1 for the navbox's heading and 4.05:1 for its sub-headings. I think we should change them to something from here. Sapphaline (talk) 10:37, 28 July 2025 (UTC)[reply]

This was last discussed in the context of navbar. You can take a look at the discussion there. Izno (talk) 00:13, 29 July 2025 (UTC)[reply]
Is it possible to change the link color in this template to Vector's (#0645ad) then? Sapphaline (talk) 09:14, 29 July 2025 (UTC)[reply]

Autocollapse bug

There seems to be a bug where autocollapse collapses the Navbox, even when (seemingly) no other collapsible elements are present on the page. Examples include: Amphibian, Aldous Huxley, Achilles.

Huwiki uses identical instances of the Navbox module and the autocollapse script. This bug was first noticed in the Algona (Iowa) article, where the removal of the Infobox makes the Navbox open. Is this a known issue? Pinging @TheDJ as the maintainer of the autocollapse script. ~ Boro (talk) 01:07, 6 August 2025 (UTC)[reply]

Authority control and similar templates are navboxes and have the relevant classes emitted. That even is relevant at hu. Izno (talk) 03:12, 6 August 2025 (UTC)[reply]
Is this the intended behavior though? With the rise of Authority control and other collapsible elements, even singular Navboxes will close off and can't fulfill their majestic purpose of showing related content to readers at a glance. ~ Boro (talk) 07:48, 6 August 2025 (UTC)[reply]
My first impression is to agree with Boro. Auth control doesn't *seem* like a navbox, regardless of its actual construction and inclusion (or not) as a navbox that could cause another navbox to autocollapse. Maybe auth should be under a different class? Mathglot (talk) 08:25, 6 August 2025 (UTC)[reply]
Authority control has been present for as long as navboxes have and probably about as long as we've supported autocollapsing. That people have added it everywhere seems to be more an issue with that behavior (sometimes via bot) and less with the functioning of autocollapse.
I would not support changing either authority control or autocollapse on the point. Izno (talk) 15:17, 6 August 2025 (UTC)[reply]
This is not the case on huwiki. The local implementation of Authority control was introduced 5 years after the navbox, and to add to that, up until today [1] it hasn't been emitting the collapse classes. I understand that this might be irrelevant for this wiki and that we could easily modify our instance. My goal right now is to understand your (that is, enwiki's) considerations, since the templates are more widely used and tested here, so we can proceed based on that knowledge.
When huwiki introduced the navbox, the reality was that no other elements were using the collapse classes, and autocollapse only activated when there were two or more navboxes adjacent to each other. Even the name “autocollapse” implies that the navbox should normally be expanded and only collapse in certain situations. These should not include situations in which templates distant from the navbox affect its behavior. My main argument is that the autocollapse feature in this template should only consider other collapsible navboxes. It should not account for navboxes in a plain/off state, sidebars, infoboxes, or any other templates having a collapse class.
In short, the expected behavior is this: a lone navbox at the bottom of the page should always remain open.
It's a separate discussion (and should not be the current one) whether 2 navboxes should remain open, as that would expand the current definition of autocollapse. Currently, the clear loser in this situation is Authority control, which I expect is more often paired with another navbox than not. However, whether Authority control should be collapsed or not, is not the point of this thread. I hope this makes it clearer what I meant when I said this is a bug, without getting sidetracked. ~ Boro (talk) 21:05, 6 August 2025 (UTC)[reply]
Also, I'm curious: what would you say if, in addition to excluding plain/off states, collapsed states were excluded as well?" ~ Boro (talk) 21:16, 6 August 2025 (UTC)[reply]

The collapsed state is caused by another collapsible list in the infobox. --Bean49 (talk) 11:02, 6 August 2025 (UTC)[reply]

This is the other common "why does it autocollapse". Izno (talk) 15:16, 6 August 2025 (UTC)[reply]

argHash issues

@Ahecht: I've found two issues of argHash during make patch for zh:Module:Navbox (sandbox):

  1. The lengths of |listN= parameters will not count towards argHash value.
  2. The |argHash= parameter which from a navbox template will not pass into module.

These issues above appears on enwiki, but zhwiki (still uses the old version of module previous 2024) not. Dabao qian (talk) 16:47, 1 September 2025 (UTC)[reply]

@Dabao qian For number 1, I don't see any reason why |listN= parameters shouldn't be counted as long as they have a string value, but I'll look into it sooner. As for #2, argHash is always automatically calculated, so it's not supposed to be passed from the template to the module (unless I'm misunderstanding what you mean). --Ahecht (TALK
PAGE
)
03:55, 2 September 2025 (UTC)[reply]
@Dabao qian Actually, looking into it further, the entire first try at calculating argHash in p.navbox is now unnecessary given that code was later added to calculate it in p._navbox. There's a version in the sandbox that eliminates that redundancy, which also means that |listN= is now counted correctly. Try it out, and I can sync the changes over to the main module at some point. --Ahecht (TALK
PAGE
)
04:26, 2 September 2025 (UTC)[reply]
Now the issus has been resolved and |listN=is counted correctly. Dabao qian (talk) 04:42, 2 September 2025 (UTC)[reply]
Offtopic: ... I was there for when this hash got added and somehow didn't remember it. Good to know at least one thing is off the list. It does appear to be working; Template:Warcraft universe's accessibility properties identify the navigation region as "Warcraft", which is the title of the navbox. Izno (talk) 16:32, 2 September 2025 (UTC)[reply]

ARIA role

To be honest, I'm kind of on the fence as to what the ARIA role should've been here @Izno. I was onboard with navigation, but I've been reading ARIA more and more, and from what I saw at Robert_Redford#Citations as an example, was waaay too many navigation elements. The banner/toolbar from Wikipedia has three already I think, if not more. The article has over 20 navboxes, which leads to so many high-level DOM navigation elements that clutter the heading lists made by Voiceover for example. I've looked at the other roles available [2], [3] as it's sufficiently important that with an ARIA label pointing to the heading as a baseline, which should be possible to be overriden by the user, but the heading should be wrapped in a span+ID, and the ID referred to by the element given role=navigation aria-labelledby=ID waddie96 ★ (talk) 13:52, 19 September 2025 (UTC)[reply]

I'm unsure if it possibly matches this 'Disclosure' example from the newest ARIA Authoring Practices Guide draft, if it's enough "high-level top domain links" because it really isn't for the most part... or if it's something else like role=region being a bit plainer waddie96 ★ (talk) 13:55, 19 September 2025 (UTC)[reply]

Rfc: Deprecation of the image and imageleft parameters

The image and imageleft parameters to be deprecated --2600:1700:6180:6290:B0E2:DAA1:CCE8:7D41 (talk) 16:53, 21 September 2025 (UTC)[reply]

When looking at many navboxes such as Template:Donald Trump, these images violate WP:DECOR, and the image and imageleft parameters should be deprecated and not to be used for new work. This is a statement from Wikipedia:Manual of Style/Icons § Encyclopedic purpose on when and when not to use images in articles:

Icons should serve an encyclopedic purpose and not merely be decorative. They should provide additional useful information on the article subject, serve as visual cues that aid the reader's comprehension, or improve navigation. Icons should not be added only because they look good: one reader's harmless decoration may be another reader's distraction. An icon is purely decorative if it does not improve comprehension of the article subject and serves no navigational function. Where icons are used for layout purposes only, consider using bullet points as an alternative.

In order to comply with the WP:DECOR guideline, I think deprecating the image and imageleft parameters would make more sense than having to create a guideline inside Wikipedia:Navigation template § Navigation templates are not arbitrarily decorative. --2600:1700:6180:6290:B0E2:DAA1:CCE8:7D41 (talk) 16:53, 21 September 2025 (UTC)[reply]

Survey

Discussion

Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya