Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
YouTube Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template talk:Navbox
(section)
Add topic
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Bug in anchors for navboxes with markup in title == There's a issue at {{slink|Template talk:Authority control#Odd HTML anchor}} due to [[Module:Navbox]] using the navbox title to produce anchors even when the title has complex markup. Perhaps [[Module:Navbox]] needs an optional anchor parameter to use instead of the navbox title? [[User:Daask|Daask]] ([[User talk:Daask|talk]]) 19:32, 23 April 2026 (UTC) :It seems this was first [https://en.wikipedia.org/w/index.php?title=Module:Navbox&diff=prev&oldid=730005287 added] in 2016 — Martin <small>([[User:MSGJ|MSGJ]] 路 [[User talk:MSGJ|talk]])</small> 20:57, 23 April 2026 (UTC) :This is now implemented in the sandbox and tested at [[Template:Navbox/testcases#Custom id attribute]] — Martin <small>([[User:MSGJ|MSGJ]] 路 [[User talk:MSGJ|talk]])</small> 11:17, 21 May 2026 (UTC) ::Kind of meh on having another parameter possible. (Not per se opposed today since this one is not going to cause much in the way of heartburn but not really supportive since it's another potential dimension for incorrect use.) ::I've previously mused about [[Template_talk:Navbox/Archive_23#c-Izno-2020-11-25T18:37:00.000Z-Jdlrobson-2020-11-25T02:04:00.000Z|just supporting authority control directly]] in some ways so as to limit the general need for Stuff Like This. Would make this module slightly impure. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:14, 21 May 2026 (UTC) :::I guess it depends on whether any other templates are likely to need this "id" argument. If not, then we can indeed hard-code a variant for authority control — Martin <small>([[User:MSGJ|MSGJ]] 路 [[User talk:MSGJ|talk]])</small> 21:20, 21 May 2026 (UTC) :::Unless you have further thoughts on alternative methods, I will implement this today — Martin <small>([[User:MSGJ|MSGJ]] 路 [[User talk:MSGJ|talk]])</small> 10:25, 1 June 2026 (UTC) ::::I mean, my personal POV is that people.... shouldn't make "complex" titles. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:22, 1 June 2026 (UTC) :::::How else can we produce the pencil icon in the authority control template? — Martin <small>([[User:MSGJ|MSGJ]] 路 [[User talk:MSGJ|talk]])</small> 17:08, 1 June 2026 (UTC) ::::::This is the correct way to do so. ::::::I guess ultimately I'm stuck at "the purpose of the ID is to be targeted by aria-labelledby" and not anything else. Is this broken from that perspective? If not, then I don't think a change is ultimately needed here. One should not be linking to this ID because it is not always present (today at least, see mobile), and in general I would see as generally bad to point a user at a navbox containing authority control: they'll either find it or they won't (on desktop). [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:56, 1 June 2026 (UTC) :::::::So your position is that <code><nowiki><div id="Authority_control_databases_frameless&#124;text-top&#124;10px&#124;alt=Edit_this_at_Wikidata&#124;link=https&#58;//www.wikidata.org/wiki/Q7749994#identifiers&#124;class=noprint&#124;Edit_this_at_Wikidata539" style="font-size:114%;margin:0 4em"><a href="/wiki/Help:Authority_control" title="Help:Authority control">Authority control databases</a></nowiki></code> is fine because it functions perfectly well and is only aesthetically displeasing? — Martin <small>([[User:MSGJ|MSGJ]] 路 [[User talk:MSGJ|talk]])</small> 07:44, 2 June 2026 (UTC) ::::::::I suppose so. And "aesthetically displeasing" is doing a lot of work there seeing as only the technically curious will even notice it. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:14, 2 June 2026 (UTC) ::[https://en.wikipedia.org/w/index.php?title=Module:Navbox/sandbox&diff=1355349804&oldid=1355348693 The change] is also incomplete. The ID is solely there to support aria-labelledby (people should not be linking to it). You've now added an ID parameter which changes the ID but you have not corrected the target of the aria-labelledby. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:55, 1 June 2026 (UTC)
Summary:
Please note that all contributions to YouTube Wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
YouTubeWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Template talk:Navbox
(section)
Add topic