Wiki Power Tools is a package of client-side javascript tools (also known as "user scripts") for editing pages on Wikipedia and other MediaWiki wiki sites.
To use Wiki Power Tools, you need to add some lines to your monobook.js file, assuming you use the Monobook skin.
Add the WPT script. There are a couple ways to do this. The easiest is to link to <http://www.cubewano.org/wpt/scripts/COMBINED.css> and <http://www.cubewano.org/wpt/scripts/COMBINED.js>:
document.write('<style type="text/css">@import "http://www.cubewano.org/wpt/scripts/COMBINED.css";</style>');
document.write('<script type="text/javascript" src="http://www.cubewano.org/wpt/scripts/COMBINED.js"></script>');
If you don't trust me not to steal your Wikipedia account, you can copy the script to your own Wikipedia user page or other web space and link to that instead.
A componetized version is <http://www.cubewano.org/wpt/scripts/ALL.css> and <http://www.cubewano.org/wpt/scripts/ALL.js>. The advantage of the componetized version is less reloading when one module changes; the disadvantage is more server connections are required, and it does not compress as well.
Create a user subpage for your preferences. This must go in a separate script, not in the same page that loaded the Power Tools (monobook.js), because your preferences must be loaded /after/ the Power Tools are loaded.
XXX TODO: usermain instructions
Link to your preferences, for example if it is named User:Quarl/usermain.js:
function winc(s) {
s = s.replace(/^\[\[/, '').replace(/\]\]$/, '');
document.write('<scr'+'ipt type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=' + s
+ '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
}
winc('[[User:Quarl/usermain.js]]');
Wiki Power Tools requires a browser with modern Javascript support. Tested so far on:
Note: The toolkit weighs in at a hefty 100 kB (300 kB if your browser does not support Content-Encoding: gzip, but most likely it does if it meets the javascript requirements).
You can browse the current version of the scripts: <http:scripts/>. If you wish to download a package release:
Browse/checkout the Subversion repository:
svn checkout http://svn.cubewano.org/repos/wpt/trunk/wpt/
The primary license for Wiki Power Tools is GPL v2+; however, some subcomponents are under different copyleft licenses.
Wiki Power Tools is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Wiki Power Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The following were originally distributed under GPL-compatible licenses: - instaview: BSD - Copyright (C) Pedro Fayolle 2005 (Wikipedia User:Pilaf) - md5: BSD - Copyright (C) Paul Johnston 1999 - 2005
Non-GPL-compatible licenses: - overLIB: Artistic - Copyright Erik Bosrup 1998-2004 - popups: GFDL (by default) - Wikipedia User:Lupin