Template talk:Collapse top

(Redirected from Template talk:Collapse top/doc)
Latest comment: 2 days ago by I Am Andumé in topic Protected edit request on 4 September 2024

Why doesn't this template work as expected in the mobile rendering?

edit

I browsed to a page using this template on my phone and the content which was intended by page authors to be collapsed by default was instead showing and not collapsible. Can this be fixed? IMO mobile readers should be given as close to the same reading experience as practical.

Also, if this is going to remain broken for mobile views, the template documentation should describe what happens there and why. Otherwise desktop authors who don't themselves use mobile devices are given no hint that use of this template is buggy/broken for mobile readers. –jacobolus (t) 19:04, 10 February 2023 (UTC)Reply

The documentation is not protected. There are notes about collapsing at Help:Collapsing and MOS:DONTHIDE. – Jonesey95 (talk) 19:23, 10 February 2023 (UTC)Reply
Updated the documentation (also for {{Collapse}}) with a "Limitations" section, transcluding the relevant material from Help:Collapsing#Limitations, so if that gets updated with new information like an MW upgrade resolving the issue, then the templates' /doc pages will automatically inherit the update.  — SMcCandlish ¢ 😼  20:38, 14 December 2023 (UTC)Reply

Want parameter to make the box as wide as the title, and left aligned

edit

Please see: Wikipedia talk:Manual of Style/Accessibility#Template:Collapse top, and Template:Collapse bottom.

I would like a parameter that makes the collapsed box as wide as the title and left aligned.

There is already a parameter to left align the title text. I am not talking about that. I want the box itself aligned to the left side of the page.

And I want the title text to wrap in narrower screens. --Timeshifter (talk) 16:54, 10 February 2024 (UTC)Reply

Where do the "hide" and "show" come from?

edit

@Izno: someone who might have a clue. That is to say -- the texts "hide" and "show" in this template, they don't actually show up in the source text -- are they from common.js or something? jp×g🗯️ 00:10, 19 May 2024 (UTC)Reply

I see that there's a MediaWiki:Collapsible-expand and a MediaWiki:Collapsible-collapse but I don't see how they're actually being invoked in this template. Through the JavaScript or what? jp×g🗯️ 00:12, 19 May 2024 (UTC)Reply
mw:Manual:Collapsible elements. Izno (talk) 00:45, 19 May 2024 (UTC)Reply

Cot bar skewed when collapsed in mobile

edit

The collapsed COT chart is displaying narrower than usual when collapsed, but is expands normally in mobile view. Can this minor issue be fixed? Qwerty284651 (talk) 21:51, 11 August 2024 (UTC)Reply

Protected edit request on 4 September 2024

edit

Implement this version of the sandbox, to make the template night mode friendly. Andumé (talk) 04:57, 4 September 2024 (UTC)Reply