Template talk:Collapse top

Active discussions

Aligning the Collapsed Box if Size is Less Than 100%Edit

Looks like there hasn't been much discussion on this template in a long while. But, I'd like to make a request. If I set the size= to less than 100%, the box that results aligns to the center of the screen. That's not really optimal in all conditions... I'd like to have the option to align= left, center or right, if that's possible... One of the problems I ran into is, I have a collapse-able UserBox on the right side of my screen. When the collapse-top box is not sized below 100%, expanding the UserBox area "pushes" the collapse-top box downward. If I resize the collapse-top box small enough, then expanding the UserBox area doesn't affect the collapse-top box (they don't collide). But to get that affect, I need to resize the collapse-top box to a very small number and it appears directly in the middle of the screen... Anything you/someone can do to help that would be greatly appreciated. Thanks. TadgStirkland401 (TadgTalk) 02:58, 16 August 2018 (UTC)

Span tag changed to div tag to fix Linter errorsEdit

I changed a span tag to a div tag with inline styling to fix some Special:LintErrors that were appearing when a manual line break was used in the |title= parameter of this template. I recognize that this template has many tranclusions, so I may have broken something in a cosmetic way. If I have broken something, anyone is welcome to undo this change or improve upon it, since the Linter errors in this case did not appear to affect the pages' rendering (yet). – Jonesey95 (talk) 06:46, 15 February 2019 (UTC)


This template doesn't seem to work on mobile. Can this be fixed?  Nixinova TC   22:51, 13 December 2019 (UTC)

Nope. --Izno (talk) 00:31, 14 December 2019 (UTC)

Left-algining this box?Edit

Is there any way of left-aligning a collapsible box? See here. I want to make it left aligned rather than centre....Cas Liber (talk · contribs) 10:47, 31 December 2019 (UTC)

  • Casliber this [1] is probably closer to your desired end result (although I'm not sure why collapsing a single captioned thumbnail is better than just.... showing said captioned thumb?) Ben · Salvidrim!  12:23, 31 December 2019 (UTC)
  • Please see MOS:COLLAPSE. This template should not generally be used in mainspace, and where used should have a solid rationale. --Izno (talk) 13:24, 31 December 2019 (UTC)
Ok fine. Will think of something else. Cas Liber (talk · contribs) 13:43, 31 December 2019 (UTC)

Left aligning the [show]/[hide] function (to help Mobile users in Desktop view)Edit

Following on from the above post, I see no option to position the [show]/[hide] function on the left side of the page. I'm wondering why that has never been addressed.

For regular mobile users like me, who work all the time in Desktop View (and usually in normal handheld landscape mode), the current default is really unhelpful as it first requires scrolling to the extreme right to look for the [show] link, and then back left to read the start of the content. If it were possible to make the [show]/[hide] function visible on the right and the left side, this would be so much more efficient for these users. See my userpage for how I've used the cot/cob functions to arrange content, and try viewing it on a small mobile screen. I know the alternative is switching to Mobile View on a mobile, but that's not really not desirable at all.

Similarly, with {{cob}}, the absence of any option to include a corresponding [show]/[hide] function at the bottom of an expanded page is also a pain for users of small mobile phones in Desktop View. Again, more fiddly up-scrolling and then right scrolling to find the [hide] function to collapse the section. If there isn't a solution to this, might this be worth putting forward at WP:VP? Cheers, Nick Moyes (talk) 00:53, 3 January 2020 (UTC)

Show/hide is inserted by Javascript which this template does not control. phab: in particular is the correct place to request a different location for show/hide. --Izno (talk) 02:11, 3 January 2020 (UTC)
Return to "Collapse top" page.