Template talk:Ability nav

Collapse Table
This table is a giant wall of text that fills up way too much page space. If it's intended to be a "quick-nav" jumplist at the bottom of individual pages, it really needs to be collapsed by default and have [show/hide] code tags added, so you can just click on a header to expand only the section wanted (see Template:Equipment Sets for a pre-existing example). I tried to sandbox-test copying that feature myself, but couldn't figure out which part of the table code forces table sections into collapsed view on page load. Tekn0mancer (talk) 15:10, 1 May 2016 (UTC)
 * Never mind, I figured it out. It was late and I couldn't focus on the code. I still can't quite figure out how to make the width of this nav table match the width of others like it, though. See Template:Equipment Sets and Template:Playable ship nav for width comparison. Navigation-table jumplists like this should really all be a uniform size and style. Tekn0mancer (talk) 17:06, 1 May 2016 (UTC)


 * You just need to specify a width in the top of the table element:


 * {| class="wikitable componenttable" style="font-size: 80%; line-height:1.25;" width="100%"


 * That'll keep everything the same size when collapsed. Template:Equipment Sets does this by defining the width on its first full, non-collapsed row instead, but it shouldn't make a difference. You can also define a width for one cell in a column to force all cells below it to use the same width, if you need to line things up that way.
 * &mdash;Kinanra (talk) 15:01, 2 May 2016 (UTC)