DISCONTINUED: The feature has been implemented in Cirrus Search Mediawiki Extension
Gadget for MediaWiki installations allowing recursive category search via CatGraph using the corresponding JSONP interface.
This MediaWiki Gadget only works for wikis covered by Catgraph.
To have your own private version of the gadget follow these steps:
Save the contents of DeepCat.js
, DeepCat.hintbox.css
and DeepCat.throbber.css
to your namespace. e.g.:
User:USERNAME/Gadgets/DeepCat.js
User:USERNAME/Gadgets/DeepCat.hintbox.css
User:USERNAME/Gadgets/DeepCat.throbber.css
Edit the cssPath
variable in DeepCat.js
to the full path where the files can be found e.g.:
cssPath = '//de.wikipedia.org/w/index.php?title=User:USERNAME/Gadgets/',
Add the main script to your User:USERNAME/common.js
e.g.:
importScript( 'User:USERNAME/Gadgets/DeepCat.js' );
The current official release of the gadget can be found on de.wikipedia.org. You can use it there by activating it on the preferences/gadgets page.
If you want to use it on any of the other supported wikis add the following line to your corrosponding User:USERNAME/common.js
:
mw.loader.load( "//de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-DeepCat.js&action=raw&ctype=text/javascript" );
The default keyword to use the DeepCat-Search is "deepcat:" and can be combined with a term in Cirrus-Syntax
- 'deepcat:[category]'
- 'deepcat:Kunstgeschichte'
- 'deepcat:Kunstgeschichte deepCat:Maler'
- 'deepcat:Kunstgeschichte Monet'
- '-Monet deepcat:Kunstgeschichte'
- 'intitle:System deepcat:Physik'
- 'deepcat:Physik -intitle:System'
- 'deepcat:Physik prefix:Sys'
- 'deepcat:"Geschichte der Physik" Newton'
- 'deepcat:Physik "Homogenes System"'
- 'deepcat:"Geschichte der Physik" -deepcat:Kunstgeschichte'
There are some unit tests under tests
directory. Tests may be run be by opening tests/index.html
in a browser or from the command line e.g. using node-qunit-phantomjs:
$ node-qunit-phantomjs ./tests/index.html
Please report bugs and feature requests on Phabricator.