User:Poke/sandbox/CollapsibleTables
This class allows to make tables collapsible and adds a show/hide button to affected tables. Tables which class attribute contains collapsible
or expandable
are affected by this class and can be collapsed; the latter automatically hides the content of all sections.
Header rows are used to divide the table into sections which can be collapsed separately. By default the first row of the table is interpreted as a header row, however this can be overwritten by adding collapsible
to the class attribute of header rows. You can also hide a section individually by default when in collapsible
mode by using expandable
as the row's class name instead.
This is the official test page of the CollapsibleTables javascript class.
Basic example[edit]
This is a typical navigation template. (example content) |
---|
Core•Prophecies•Factions•Nightfall•Eye of the North |
Tyria•Cantha•Elona•Northern Shiverpeaks |
Other examples (second heading) |
Warrior Ranger Monk Necromancer Mesmer Elementalist Assassin Ritualist Paragon Dervish |
Warrior•Ranger•Monk•Necromancer•Mesmer•Elementalist•Assassin•Ritualist•Paragon•Dervish |
Skills • Equipment • Armor |
Examples[edit]
Below are some examples of existing navigation templates.