Help talk:Collapsing

message: Could the hide/show be layered so that it does not interfere with the centering of the text within the field? Currently the centered text is offset by the hide/show and is driving me batty trying to figure a way around it.
 .hide_show_class { z-index:2; }
Something like that might work. - LA @ 15:39, 2 November 2007 (UTC)
thread_title:  Layering hide/show 

message: Collapsible tables suck.. why are we going back 10 years to tables when we have a div based solution? --⁪ffroth 12:52, 2 December 2007 (UTC)
thread_title:  Um 

message: Is there a way to put pre-formatted content in a collapsible table? 63.118.244.2 (talk) 20:18, 23 December 2009 (UTC)
thread_title: Unformatted text

message: Is it possible to set individual column widths? - TheMightyQuill (talk) 21:57, 17 March 2008 (UTC)
thread_title:  column width? 

message: Does anyone know if it's at all possible to get this effect using elements other than tables? Something along the lines of:

<a>Show/Hide</a>

Content


:lucideer 23:57, 14 November 2008 (UTC)
thread_title:  Collapsible Divs? 

message: I tried to make a table with the show link on the left instead of the right, and this is the best I can manage. Is there a better way, and if so could an example be placed on the help page? Thank you. 84user (talk) 03:05, 18 December 2008 (UTC)
thread_title:  Left-hand side show/hide link ? 

message: Where do you find MediaWiki:Common.js, for example local settings in the config folder? please help me. thanks Xxxsacheinxxx (talk) 15:18, 18 February 2009 (UTC)
thread_title:  MediaWiki:Common.js 

message: I only wanted collapsible tables so I only copied the part of Wikipedia's Mediawiki:Common.js relating to that. There is a dependency though in the js for the following function which you also need to copy as well,:
/* Test if an element has a certain class **************************************
 *
 * Description: Uses regular expressions and caching for better performance.
 * Maintainers: User:Mike Dillon, User:R. Koot, User:SG
 */
 
var hasClass = (function () {
    var reCache = {};
    return function (element, className) {
        return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
    };
})();
So if it isn;t working for you check that you've got this function in your Mediawiki:common.js
82.35.81.250 (talk) 10:35, 25 February 2009 (UTC)
replies: text: Thank you for pointing that out.  This should be documented in the help page itself.  --Lance E Sloan (talk) 20:39, 2 March 2009 (UTC)
thread_title:  Dependency with collapsible tables 

message: Besides changes to MediaWiki:Common.js, to implement collapsible tables in your own wiki the same way they are in Wikipedia requires changes to MediaWiki:Common.css as well.  It would be nice to have a document of all the changes necessary to implement collapsible tables.  --Lance E Sloan (talk) 20:37, 2 March 2009 (UTC)
replies: text: I believe that this is the way to do it: http://www.mediawiki.org/wiki/Manual:Collapsible_tables . Place both the CSS and JS at the bottom of the respective CSS and JS, and it should work. --Toussaint (talk) 04:18, 11 March 2009 (UTC)
thread_title:  MediaWiki:Common.js and MediaWiki:Common.css 

message: How about . Kasaalan (talk) 07:34, 6 June 2010 (UTC)
thread_title: Collapse template

message: Tracklist table: I've added the following templates and the table displays properly:
*Template:Tracklist
*Template:Track listing
*Template:Track listing/Track
*Template:Collapsible list
I've also added Wikipedia's "MediaWiki:Common.js" file to my own site
The Show/hide links works by showing the table or hiding it when the link is clicked. However it also moves the cursor to the start of the page.  Can anyone please tell me how to fix this? Holygamer (talk) 18:47, 24 June 2010 (UTC)
thread_title:  Clicking Show/Hide Moves cursor to Start of Page 

message: I'm having some difficulty creating a multiple Column Collapsible table from the examples provided. HELP PLEASE.-- Avazina, an Unreconstructed Southerner 15:53, 1 September 2010 (UTC)
replies: text: I dont even know if that is possible. Adamtheclown (talk)  —Preceding undated comment added 11:47, 12 January 2011 (UTC)
replies: text: Its not possible: Wikipedia:Village_pump_(technical)/Archive_61#Collapsible_rows_in_tables. Adamtheclown (talk) 11:49, 12 January 2011 (UTC)
thread_title:  Multiple ''Column'' Collapsible? 

message: I have just made several tables in Empire Test Pilots' School collapsible and collapsed. If one clicks on a footnote to an entry in a collapsed table, nothing happens. The desirable (i.e. user-friendly) behaviour IMHO would be for the appropriate table to be expanded to show the referenced entry; otherwise the tables will have to be left expanded, which defeats the object. Is this auto-expansion possible? Thanks. --TraceyR (talk) 11:10, 27 January 2011 (UTC)
thread_title:  Footnotes to collapsed tables: Autoexpand? 

message: I'm experiencing a problem with sortable and collapsible. Apparently, both of them cannot work together. I tried on this test page. Can anyone help me? Lonelydarksky (暗無天日)  contact me (聯絡) 17:41, 18 February 2011 (UTC)
replies: text: Wikipedia:Village pump (technical)#Table show/hide disfunction. — AlexSm 18:31, 18 February 2011 (UTC)
thread_title:  Problem with sortable and collapsible 

message: Hello!
Is there a way of creating a collapsible header that has its text not in bold? (this)
Thanks! Momergil (talk) 17:04, 17 March 2011 (UTC)
thread_title:  Problem with bold header 

message: Doesn't seem to be much practical difference between the two, so does anyone know why would it be better to chose one over the other? The content in question is currently in a table so it seems logical to use collapsible tables but in the Help for Collapse (top and bottom) it mentions it can also be used to collapse complex content that includes tables. Doesn't seem to be any clear indication which is recommended. Page in question: http://en.wikipedia.org/wiki/Apple_iOS_version_history (Jd2157 (talk) 15:03, 8 September 2011 (UTC)
thread_title:  Collapsible tables vs. Collapse top/bottom (cot/cob) 

message: I'm having some problems using the collapse function on this page. I've collapsed the two internal templates (which is good), but I'm not able to collapse the larger template that encompasses them.
Any suggestions? Is this a coding limitation, or am I doing something wrong? CJCurrie (talk) 04:41, 13 November 2012 (UTC)
replies: text: Please disregard -- I've changed the formatting on what I was doing. CJCurrie (talk) 00:30, 14 November 2012 (UTC)
thread_title: Collapsing templates within a larger collapsible template?

message: I tried to use this template on wiki-site.com, but I failed. It doesn't hide the body. What can I do? NAME XXX (talk) 20:10, 6 October 2013 (UTC)
replies: text: I think you also need to copy some code out of MediaWiki:Common.js, the section beginning with "Collapsible tables" inside a large JavaScript comment. If you can't see how to make it work, I suggest you ask the experts at Village pump (technical). -- John of Reading (talk) 20:17, 6 October 2013 (UTC)
replies: text: Thank you! But, unfortunately, there is no answer there. Maybe, you can help? I'm not the wiki-admin on site, and usual "<script></script>" tag doesn't work. NAME XXX (talk) 20:51, 8 October 2013 (UTC)
thread_title: Usage of this template on wiki-site.com

message: I need some help to optionally collapse a table which is used in a template. The table is already formatted as collapsible in the template . The table is expanded by default, which is fine. What I wan't to be able to do is to have in collapsed state in a select few of the occasions were it is called upon using the  syntax.Tvx1 15:59, 23 January 2017 (UTC)
thread_title:  Collapsing a table used in a template. 

message: This doesn't apply to the English Wikipedia, but recently, the table with the option to change languages is collapsed in most versions of Wikipedia. Even when you uncollapse, it doesn't go back to normal, but opens a small window showing some random languages, then other languages sorted into different regions. You have to scroll through it and the lists are arranged into columns, making it more difficult. This feature is a step back. Please fix it. --92.75.199.236 (talk) 11:13, 13 March 2017 (UTC)
replies: text: This is not the page for requesting fixes to anything other than the help page Help:Collapsing. I suggest that you follow the advice at WP:Bugs and file a ticket at Phabricator. --Redrose64 🌹 (talk) 14:22, 13 March 2017 (UTC)
thread_title:  Languages 

message: A note at Wikipedia:Userboxes#Using_collapsible_tables links here, but it's not immediately clear how to apply collapsible wikitables in that setting.  This help page could use some specific examples in that setting. --Theodore Kloba (talk) 15:07, 4 August 2017 (UTC)
thread_title:  Collapsible userboxes 

message: How difficult would it be to get infobox collapsing working for mobile? It'd be really nice if a sizable chunk of the 1 million readers per day going to 2019–20_coronavirus_pandemic didn't have to scroll through a bunch of maps before getting to the article itself. Sdkb (talk) 01:00, 26 March 2020 (UTC)
thread_title:  Getting collapsing to work on mobile 

message: Is it possible to collapse part of a wikitable, but not the whole thing. For example, this would be useful on long election results tables to hide minor parties but retain the info for anyone who wants to know the full details. Cheers, Number 57 22:10, 19 April 2020 (UTC)
replies: text: Only by using subtables. --Redrose64 🌹 (talk) 20:20, 20 April 2020 (UTC)
thread_title: Collapsing part of a Wikitable

message: Hello Redrose. Thanks for your response at Help talk:Collapsing. I've tried making a partially-collapsing table at User:Number_57/sandbox#Table. Although it's almost right, when it looks fine on my laptop, the columns of the inlaid table are very slightly off (by a single pixel) on my mobile. When I fix it on that, they are slightly off on my laptop. Do you have any idea what's going wrong and whether it can be made to be right on both? Cheers, Number 57 19:11, 21 April 2020 (UTC)
thread_title: Partially-collapsing tables

message: Is it possible to collapse an image? 103.67.158.47 (talk) 20:26, 24 July 2020 (UTC)
replies: text: Yes, if you enclose it in a suitable div. --Redrose64 🌹 (talk) 21:55, 25 July 2020 (UTC)
thread_title:  Collapsing image 

message: How to move the toggle label by some indentation left or right, and to change its font? thx. maimonid (talk) 10:02, 17 May 2022 (UTC)
thread_title: Manipulating the toggle label

message: I can't anything for it... Viu54071 (talk) 00:18, 24 January 2023 (UTC)
thread_title:  How to collapse multiple rows by default? 

message: You are invited to join the discussion at Template talk:Collapsible option § Readability overhaul.   talk 20:14, 22 July 2023 (UTC)
thread_title: Discussion at [[:Template talk:Collapsible option#Readability overhaul|Template talk:Collapsible option §&nbsp;Readability overhaul]]

message: You are invited to join the discussion at :Wikipedia:Bots/Requests for approval/SdkbBot 4.   talk 05:10, 2 August 2023 (UTC)
thread_title: Relevant BRFA