Board Thread:Support Requests - Getting Technical/@comment-24549343-20140306170052/@comment-24549343-20140311010150

Autosort is very simple. just need to simulate mouse clicking on the header after page loaded. you have to use window.load for that to work properly. $(window).load(function  {     $( "table.autosort" ).each(function ( i, e ) {        $('th:first', e).click; }); });

for filterable, the implementation is splitted into two files.

http://toukiden.wikia.com/wiki/MediaWiki:Filterable.js and

http://toukiden.wikia.com/wiki/MediaWiki:Highlight.js

once the files are in, just need to edit MediaWiki:Common.js to include importScriptPage ("MediaWiki:Filterable.js"); after that add "filterable" class to any table and it will work. If you need to adjust the look, you can edit the line $(e).before("Filter Table(Use double quotes to escape space) "); you just need to ensure that input box id is properly generated.

the tables can also be nested inside each other like http://toukiden.wikia.com/wiki/Items, just need to put filterable on the topmost table and the search is applied to all rows inside nested tables.