Template talk:Infobox

message: I suggest to think how could we improve the accessibility and semantics for bulleted subheaders like this (see Alaska) which are present in many infoboxes in some varieties (e.g. bold, not bold, with different spacing). Not only is there no semantic/accessible markup here, there is no markup here at all, these are just plain  • .
I find it difficult to say, though, how this should be structured best. Semantically, I think, "Language" and "Time zones" on the screenshot are sections/divisions of the table with a title, so "Official languages" and "Spoken language" are like the other table headers, just inside this section. But we can't use multiple  elements in MediaWiki, so I'm not aware how such sections could be isolated.
There are other complexities as well. Sometimes you have a section header that is a key in a key–value pair itself (e.g. "Government" in , see Antigua and Barbuda: "Government: Unitary parliamentary constitutional monarchy"). There can also be "subitems" like "Summer (DST)" on the screenshot.
For key–value pairs,  element is best suited (generated by ;: markup), so one could come up with a structure like this:
; East of 169°30'
: UTC−09:00
:; Summer (DST)
:: UTC−18:00
that would translate into this HTML:

East of 169°30'

UTC−09:00

Summer (DST)
UTC−18:00



But then you would have difficulties to style the elements in such a way that all headers are on the left, and all values are on the right – and to make the widths of the left and right precisely match their widths in the rest of the inbofox.
That said, using semantic tags is not the only way to make an accessible layout: ARIA roles and attributes may come in handy just as well. Jack who built the house (talk) 15:24, 6 January 2024 (UTC)
thread_title:  Accessibility and semantics for bulleted subheaders 

message: Is there any way to add a parameter for making an infobox collapsible? This would be extremely helpful for some very lengthy templates that take up useful page real estate. See Template talk:Infobox nutritional value#Needs to be collapsible for an example of what I mean. Cheers! –Kittycataclysm (talk) 23:40, 28 April 2024 (UTC)
replies: text: Honestly, if there's serious discussion about making a specific infobox collapsible, then it sounds to me like an infobox is the wrong approach. Help:Infobox explicitly states that infoboxes shouldn't be excessively long. I know that doesn't exactly answer your question, but I think the question shouldn't be whether the infobox should be collapsible, but whether an infobox is even the proper option in the first place. DonIago (talk) 00:53, 29 April 2024 (UTC)
replies: text: Would agree with Doniago, but there are templates that have this kind of functionality built in, eg the medals section in . Nikkimaria (talk) 05:27, 29 April 2024 (UTC)
replies: text: Two different issues, I think. The OP is saying we should be able to collapse the entire infobox, while you're suggesting making sections collapsible. The latter is something that should, as has been suggested, be discussed at a specific template's talk page. Making the entire infobox collapsible is probably a non-starter. Primefac (talk) 11:34, 29 April 2024 (UTC)

text: It is possible to make a collapsible infobox today. You simply shouldn't for reasons in the MOS:COLLAPSE and vaguely WP:LAYOUT directions. Izno (talk) 16:18, 29 April 2024 (UTC)

text: If you feel that an infobox is so lengthy that collapsing is desirable, you should consider cutting down the amount of information that is included. --Redrose64 🌹 (talk) 08:16, 30 April 2024 (UTC)
thread_title:  Collapsibility?