Greasy Fork is available in English.

Wikitable filter

Filter for wiki tables using the jQuery tablesorter filter widget

Autor
smheidrich
Instalări zilnice
0
Total instalări
319
Rating-uri
3 1 0
Versiune
1.1.1
Creat
28-06-2015
Actualizat
20-02-2017
Licență
N/A
Se aplică pe

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.