Template talk:Collapsible list#Show misaligned
{{Talk header}}
{{WikiProject banner shell|
{{WikiProject Lists }}
}}
{{User:MiszaBot/config
| algo = old(180d)
| archive = Template talk:Collapsible list/Archive %(counter)d
| counter = 2
| maxarchivesize = 50K
| archiveheader = {{Automatic archive navigator}}
| minthreadstoarchive = 1
| minthreadsleft = 4
}}
Nested lists
I have problems with nested lists. Consider this code:
{{Collapsible list | title=Figures
| 1 = {{Collapsible list | title=Red figures | 1=Red circle | 2=Red square | 3= Red triangel}}
| 2 = {{Collapsible list | title=Green figures | 1=Green circle | 2=Green square | 3= Green triangel}}
| 3 = {{Collapsible list | title=Blue figures | 1=Blue circle | 2=Blue square | 3= Blue triangel}}
}}
which produces this list:
{{Collapsible list | title=Figures
| 1 = {{Collapsible list | title=Red figures | 1=Red circle | 2=Red square | 3= Red triangel}}
| 2 = {{Collapsible list | title=Green figures | 1=Green circle | 2=Green square | 3= Green triangel}}
| 3 = {{Collapsible list | title=Blue figures | 1=Blue circle | 2=Blue square | 3= Blue triangel}}
}}
When I click on the "show" link for the outer list, the three inner lists are also expanded, but their links say "show". When I click on any inner "show" links, the outer list collapses. Why does it behave like that? Dipsacus fullonum (talk) 12:17, 12 May 2024 (UTC)
Info on `list_style`
Where can I find information on how to use `list_style`? Closed Limelike Curves (talk) 16:16, 7 August 2024 (UTC)
Title invisible in infoboxes when in dark mode
I'm not familiar enough with MediaWiki's source code to figure out where exactly this goes wrong, so I don't know where to file a bug.
Due to the rule
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .mw-parser-output [style*="background"] {
color: #202122;
}
}
the color of collapsible list title text exactly matches the background of infoboxes (var(--background-color-interactive-subtle)
) when using dark mode. This makes the title invisible in dark mode when this template is used within an infobox. Other text in infoboxes, if anything, has color: inherit !important
, or uses a suitable var(--color-*)
. -- Stiiin (talk) 17:18, 5 December 2024 (UTC)