Name: DeepCat-Gadget
Owner: Wikimedia Deutschland e.V.
Description: Gadget for MediaWiki using JSONP CatGraph interface
Created: 2015-04-27 09:51:52.0
Updated: 2017-01-21 06:57:04.0
Pushed: 2017-05-19 13:22:05.0
Size: 213
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.:
ath = '//de.wikipedia.org/w/index.php?title=User:USERNAME/Gadgets/',
Add the main script to your User:USERNAME/common.js
e.g.:
rtScript( '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
:
oader.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
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:
de-qunit-phantomjs ./tests/index.html
Please report bugs and feature requests on Phabricator.