This is the
talk page for discussing improvements to the
Collapsible list template. |
|
Archives: 1 |
Lists Template‑class | |||||||
|
On WikiProject Video games, we use collapsible lists in infoboxes where many release dates are listed and use the initial date as title of the list. However, when the list is expanded the initial date is shown once as the title and once in the platform-specific section within the list, making the first one redundant.
Given this, is it possible to hide the title when the list is uncollapsed or could that feature be implemented? Lordtobi ( ✉) 07:24, 6 June 2018 (UTC)
Per MOS:DONTHIDE this should not be in a collapsed state by default. Other collapsible content templates have been fixed (unless I'm missing one somewhere) to resolve this failure to comply with the guidelines. Auto-collapsing content is both an accessibility problem (screenreader users cannot expand it) and a mobile problem (various mobile devices/browsers will not show such elements or allow them to be expanded again). There are two approaches to fixing this (then updating the /doc to compensate):
Option 2 might theoretically be preferable if a) this template is frequently used outside of mainspace, and b) only for content where accessibility and mobile use are not an issue. I'm very skeptical this will actually be applicable, so absent a strong showing that is it, option should be implemented. — SMcCandlish ☏ ¢ 😼 12:03, 29 July 2018 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Not sure what needs to be changed in an X to Y fashion since I have no knowledge editing templates this complex, but here's the issue: When I implemented {{
Collapsible list}} on
Tesla, Inc. as can be seen on
this diff the title overflowed under the "show" link, so I had to insert <br/>
in the title of the collapsible list in
this diff. (In this edit I also made it an hlist but that's unrelated to my request.) This is not the most ideal compromise as some readers view Wikipedia in different fonts, sizes and with certain accessibility modes active that may make this compromise ineffective. Please may you assist me in rectifying this by in some way making the area behind the "show" button unable to have title text be printed behind it. comrade
waddie96 (
talk) 17:15, 2 March 2020 (UTC)
It's a bit of a hack, but may like this ? — TheDJ ( talk • contribs) 13:42, 15 March 2020 (UTC)
html.client-js
), as the toggle button isn’t present otherwise. —
Tacsipacsi (
talk) 00:02, 16 March 2020 (UTC)Oh hey, here I am trying to remove navframe and I stumbled on this discussion :^). Did we ever sort out what we were going to do or have a reasonable belief that the change is a good/neutral change? -- Izno ( talk) 19:25, 30 June 2020 (UTC)
@ Izno: I'm pretty sure this change messed up collapsible lists inside of collapsible lists- see Wikipedia:WikiProject_Video_games/New_article_announcements/Archivesbox; the outer template has its "show" button with float:right, but the inner ones now get float:none, making them confusingly show up on the line above the rest of the title. The template use here is minor, but if nested collapsible lists is a supported concept it's a valid bug. Only now noticing this since I interact with that template once a month. -- Pres N 15:11, 8 March 2021 (UTC)
/* list-items go as wide as their parent element, don't float them inside list items */
. --
Izno (
talk) 20:09, 8 March 2021 (UTC)
Please see
these test cases. When I try to add |liststyle=font-size:85%;
to a bulleted list, the text is not made small, and it is centered instead of placed at the left. I expect that the problem is either in my parameter value or in the logic applied when a custom liststyle is chosen. Who can tell me what is going on here? –
Jonesey95 (
talk) 17:24, 19 June 2020 (UTC)
In article Elizabeth II, template {{ Collapsible list}} is used inside the infobox. Unfortunately, the link to show the collapsed list overlaps with the text "Queen of the United Kingdom and the other Commonwealth realms". I've added a new test case to demonstrate the issue. — andrybak ( talk) 08:29, 6 September 2020 (UTC)
{{Collapsible list|framestyle=background-color:#f8f9fa;|titlestyle=color:green;|title=Title|1=First item|2=Second item}}
What am I missing here? – Uanfala (talk) 20:21, 1 April 2021 (UTC)
Update the page as of new features in collapse by wikipedia in 2019. A.S. Universal ( talk) 04:40, 31 July 2021 (UTC)
Perhaps, template needs a nowrap option. In wide tables expanded collapsible list looks messy, as wrapped by every word. So there needs to be an option not to wrap an entry, so each entry will be own line. Elk Salmon ( talk) 15:27, 14 January 2022 (UTC)
liststyle = white-space: nowrap;
does it well
Elk Salmon (
talk) 15:43, 14 January 2022 (UTC)I'm wondering if anyone knows a way to change the colour of the show/hide button? Aris Odi ❯❯❯ talk 01:26, 5 February 2022 (UTC)
As stated here already, mobile view is buggy. On my devices, I just can't expand any list using "collapsible lists". Comrade Mmirg ( talk) 18:39, 26 September 2022 (UTC)
Can anyone spot the error at the infobox for
pound sterling? In this sequence
the "[show]" for the 9 territories is appearing before the title rather than after it. I have tried adding framestyle=border:none; padding:0;
with no effect. (Interesting though that the error reproduces here... I thought it would be an infobox artefact.) --
𝕁𝕄𝔽 (
talk) 18:52, 26 September 2022 (UTC)
References
𝕁𝕄𝔽 ( talk) 18:52, 26 September 2022 (UTC)
has a related ticket: https://phabricator.wikimedia.org/T111565 fgnievinski ( talk) 05:17, 13 January 2023 (UTC)
I would like to be able to apply a style to every item in a list. {{
bulleted list}}
and family have a |item-style=
parameter that does this (also |itemN-style=
for just item number N). For example it's not possible to add a hanging indent for legibility to an unbulleted collapsible list, à la {{
unbulleted indent list}}
.
Hairy Dude (
talk) 13:57, 6 December 2023 (UTC)
In Rising_Star_Cave#References Footnote #5, the "hide/show" button sits on top of the list title, instead of next to it. Green C 04:28, 2 January 2024 (UTC)
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:
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)
This is the
talk page for discussing improvements to the
Collapsible list template. |
|
Archives: 1 |
Lists Template‑class | |||||||
|
On WikiProject Video games, we use collapsible lists in infoboxes where many release dates are listed and use the initial date as title of the list. However, when the list is expanded the initial date is shown once as the title and once in the platform-specific section within the list, making the first one redundant.
Given this, is it possible to hide the title when the list is uncollapsed or could that feature be implemented? Lordtobi ( ✉) 07:24, 6 June 2018 (UTC)
Per MOS:DONTHIDE this should not be in a collapsed state by default. Other collapsible content templates have been fixed (unless I'm missing one somewhere) to resolve this failure to comply with the guidelines. Auto-collapsing content is both an accessibility problem (screenreader users cannot expand it) and a mobile problem (various mobile devices/browsers will not show such elements or allow them to be expanded again). There are two approaches to fixing this (then updating the /doc to compensate):
Option 2 might theoretically be preferable if a) this template is frequently used outside of mainspace, and b) only for content where accessibility and mobile use are not an issue. I'm very skeptical this will actually be applicable, so absent a strong showing that is it, option should be implemented. — SMcCandlish ☏ ¢ 😼 12:03, 29 July 2018 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Not sure what needs to be changed in an X to Y fashion since I have no knowledge editing templates this complex, but here's the issue: When I implemented {{
Collapsible list}} on
Tesla, Inc. as can be seen on
this diff the title overflowed under the "show" link, so I had to insert <br/>
in the title of the collapsible list in
this diff. (In this edit I also made it an hlist but that's unrelated to my request.) This is not the most ideal compromise as some readers view Wikipedia in different fonts, sizes and with certain accessibility modes active that may make this compromise ineffective. Please may you assist me in rectifying this by in some way making the area behind the "show" button unable to have title text be printed behind it. comrade
waddie96 (
talk) 17:15, 2 March 2020 (UTC)
It's a bit of a hack, but may like this ? — TheDJ ( talk • contribs) 13:42, 15 March 2020 (UTC)
html.client-js
), as the toggle button isn’t present otherwise. —
Tacsipacsi (
talk) 00:02, 16 March 2020 (UTC)Oh hey, here I am trying to remove navframe and I stumbled on this discussion :^). Did we ever sort out what we were going to do or have a reasonable belief that the change is a good/neutral change? -- Izno ( talk) 19:25, 30 June 2020 (UTC)
@ Izno: I'm pretty sure this change messed up collapsible lists inside of collapsible lists- see Wikipedia:WikiProject_Video_games/New_article_announcements/Archivesbox; the outer template has its "show" button with float:right, but the inner ones now get float:none, making them confusingly show up on the line above the rest of the title. The template use here is minor, but if nested collapsible lists is a supported concept it's a valid bug. Only now noticing this since I interact with that template once a month. -- Pres N 15:11, 8 March 2021 (UTC)
/* list-items go as wide as their parent element, don't float them inside list items */
. --
Izno (
talk) 20:09, 8 March 2021 (UTC)
Please see
these test cases. When I try to add |liststyle=font-size:85%;
to a bulleted list, the text is not made small, and it is centered instead of placed at the left. I expect that the problem is either in my parameter value or in the logic applied when a custom liststyle is chosen. Who can tell me what is going on here? –
Jonesey95 (
talk) 17:24, 19 June 2020 (UTC)
In article Elizabeth II, template {{ Collapsible list}} is used inside the infobox. Unfortunately, the link to show the collapsed list overlaps with the text "Queen of the United Kingdom and the other Commonwealth realms". I've added a new test case to demonstrate the issue. — andrybak ( talk) 08:29, 6 September 2020 (UTC)
{{Collapsible list|framestyle=background-color:#f8f9fa;|titlestyle=color:green;|title=Title|1=First item|2=Second item}}
What am I missing here? – Uanfala (talk) 20:21, 1 April 2021 (UTC)
Update the page as of new features in collapse by wikipedia in 2019. A.S. Universal ( talk) 04:40, 31 July 2021 (UTC)
Perhaps, template needs a nowrap option. In wide tables expanded collapsible list looks messy, as wrapped by every word. So there needs to be an option not to wrap an entry, so each entry will be own line. Elk Salmon ( talk) 15:27, 14 January 2022 (UTC)
liststyle = white-space: nowrap;
does it well
Elk Salmon (
talk) 15:43, 14 January 2022 (UTC)I'm wondering if anyone knows a way to change the colour of the show/hide button? Aris Odi ❯❯❯ talk 01:26, 5 February 2022 (UTC)
As stated here already, mobile view is buggy. On my devices, I just can't expand any list using "collapsible lists". Comrade Mmirg ( talk) 18:39, 26 September 2022 (UTC)
Can anyone spot the error at the infobox for
pound sterling? In this sequence
the "[show]" for the 9 territories is appearing before the title rather than after it. I have tried adding framestyle=border:none; padding:0;
with no effect. (Interesting though that the error reproduces here... I thought it would be an infobox artefact.) --
𝕁𝕄𝔽 (
talk) 18:52, 26 September 2022 (UTC)
References
𝕁𝕄𝔽 ( talk) 18:52, 26 September 2022 (UTC)
has a related ticket: https://phabricator.wikimedia.org/T111565 fgnievinski ( talk) 05:17, 13 January 2023 (UTC)
I would like to be able to apply a style to every item in a list. {{
bulleted list}}
and family have a |item-style=
parameter that does this (also |itemN-style=
for just item number N). For example it's not possible to add a hanging indent for legibility to an unbulleted collapsible list, à la {{
unbulleted indent list}}
.
Hairy Dude (
talk) 13:57, 6 December 2023 (UTC)
In Rising_Star_Cave#References Footnote #5, the "hide/show" button sits on top of the list title, instead of next to it. Green C 04:28, 2 January 2024 (UTC)
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:
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)