User:Mzajac/jQuery.makeCollapsible in table captions

Test cases for Bug 47139: jQuery.makeCollapsible: support table captions.

mw-collapsible table
Control: an ordinary collapsible table with a caption.

It would be better if the toggle appeared in the caption, and the table collapsed to its caption instead of its first row.

mw-collapsible table, dynamic toggle text
Control: an ordinary collapsible table with a caption, and custom toggle text.

It would be better if the toggle appeared in the caption, and the table collapsed to its caption instead of its first row.

mw-collapsible caption
The caption is collapsible. Works as expected, but not useful.

It would be better if the table collapsed as above, only leaving the caption visible, and not the first row. Also, the appearance would be better if the toggle wasn’t a float but inline after the caption content.

mw-collapsible table, mw-customtoggle
Ordinary table with a custom toggle in a separate div.

[click me]

[click me]

mw-collapsible table, mw-customtoggle, dynamic toggle text
As above, with dynamic toggle text.

Dynamic text doesn’t appear. I guess the dynamic text feature is not compatible with the custom toggle feature. Too bad.

[click me]

[click me]

mw-collapsible table, mw-customtoggle in the caption
Table with a custom toggle span in its caption.

Works well, but no dynamic text. (A div in the same place renders before the table in the document flow.)

mw-collapsible table, mw-customtoggle is the caption
Table with its caption made into a custom toggle.

Works well, but no dynamic text.

mw-collapsible table, mw-customtoggle is the caption, collapsed
The same, starting in a collapsed state.

mw-collapsible table, mw-customtoggle is the caption, dynamic toggle text
Trying to use dynamic labels in the caption.

Dynamic labels don’t appear.

Links

 * mw:Manual:Collapsible_elements
 * ResourceLoader/Default modules
 * testwiki:User:Krinkle/CollapsingTestpageMw