Wikitable filter

Filter for wiki tables using the jQuery tablesorter filter widget

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
smheidrich
日安装量
0
总安装量
347
评分
3 1 0
版本
1.1.1
创建于
2015-06-28
更新于
2017-02-20
大小
2.5 KB
许可证
暂无
适用于

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.