User blog comment:Snodderz/HH Data Blog - Feel free to use my data./@comment-5433714-20121014204838

Re: collapsible tables

I'm not sure how much you know about tables. I have learned a lot from visiting the wikia help pages. I am not an expert at all, this is just what I have learned myself. If you run across a problem WieQuadrat is great with tables and other info. He's helped me out quite a bit.

You can create your table in visual or source mode. I usually create it in visual mode and then change it using source mode. Many things need to be done in source mode that cannot be done in visual mode. Collapsing a table must be done in source mode.

So create your table. If you use visual mode to do this, create it and then switch to source mode. At the top of the code for the table you'll see: class="article-table," which is the default when you create a table in visual mode. To make the table collapsible and sortable I change this to: class="wikitable sortable collapsible collapsed" data-expandtext="Show" data-collapsetext="Hide." You do not need to make it sortable, this is just what I do. If you do not want it to be sortable just leave that word out. I've been having some problems with the sorting arrows appearing in the finished table, so I'm not sure if there is something wrong with my source code. Hide/Show are what most of us use but you can change this if you like by typing different words in their place.

You can swith back to visual mode to add data to the table. While in visual mode or using the preview function, you will not be able to see the sorting or collapsing of the table. You can only see this once you have published your edit and are viewing the page, not when editing.

Hope this helps.