On November 6th, 2024, the 9,000th article was added to the SuccuWiki!

Help:Sorting

From SuccuWiki - The Wiki of the Succubi
Revision as of 03:45, 1 January 2013 by Arcane (talk | contribs) (added Category:Help Pages using HotCat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Tables can be made sortable via client-side JavaScript.

A sortable table is identified by the arrows in each of its header cells. Clicking them will cause the table rows to sort based on the selected column, in ascending order first, and subsequently toggling between ascending and descending order.

JavaScript source

The JavaScript code is found at //succubus.net/skins-1.5/common/wikibits.js. In addition, MediaWiki:Common.js adds and overrides some code.

Browser issues

With older versions of Safari a table can only be sorted by the first column: all sort buttons have the effect that only the leftmost one is supposed to have.