Wikitable filter

Filter for wiki tables using the jQuery tablesorter filter widget

Author
smheidrich
Daily installs
0
Total installs
318
Ratings
3 1 0
Version
1.1.1
Created
2015-06-28
Updated
2017-02-20
License
N/A
Applies to

Adds filters to wikitables (i.e. tables with class "wikitable") using the jQuery plugin tablesorter and its filter widget.
I find that this is useful for large comparison tables of different software, such as Wikipedia's comparison of Wiki software or OpenStreetMap's software comparison.

Note that MediaWiki tables have their own sort script also called tablesorter, but this appears to be different from the one required here.
You can read more about the filter widget here: Tablesorter Filter Widget documentation

Usage

The script prepends a button to each wikitable that will apply the jQuery tablesorter plugin (apparently overwriting MediaWiki's own tablesorter) and the filter widget to the table when clicked. The filter widget will display an input field below the header of each table column in which you can enter text to filter with. Entering just normal letters will filter rows such that only those that have these letters in the column will be displayed.
For more advanced filtering methods, refer to the Tablesorter Filter Widget documentation.