User:Poke/sandbox/CollapsibleTables

From Guild Wars Wiki
Jump to navigationJump to search
class CollapsibleTables.js

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)
CorePropheciesFactionsNightfallEye of the North
TyriaCanthaElonaNorthern Shiverpeaks
Warrior WarriorRanger RangerMonk MonkNecromancer NecromancerMesmer MesmerElementalist ElementalistAssassin AssassinRitualist RitualistParagon ParagonDervish Dervish
WarriorRangerMonkNecromancerMesmerElementalistAssassinRitualistParagonDervish
SkillsEquipmentArmor

Examples[edit]

Below are some examples of existing navigation templates.

Towns and outposts in Vabbi
The Kodash Bazaar Basalt Grotto Chantry of Secrets Dasha Vestibule Dzagonur Bastion Grand Court of Sebelkeh Honur Hill Jennur's Horde Mihanu Township Tihark Orchard Wehhan Terraces Yahnur Market
Missions in Vabbi
Dasha VestibuleDzagonur Bastion Grand Court of Sebelkeh Jennur's Horde Tihark Orchard
Landmarks in Vabbi
Elon Font of Lyss Grand Forum of Vabb Halls of Chokhin Jahinur Pojah Estates Sebelkeh Basilica Seborhin tree