User talk:Matteo/popups.js
Jump to navigation
Jump to search
These are the instructions for installing on "other wikis" the full comments on this can be found at wikipedia: Wikipedia:Tools/Navigation popups/FAQ - Matteo 18:29, 2 October 2006 (PDT)
Using the script on other wikis
How can I use the script on other mediawiki installations?
- Answer
- Enable user javascript and user css on the wiki (see [meta:Help:User_style#General])
- Optionally, install the query extension. (Not doing so will reduce the script functionality, but it should still work). Note that the script expects query.php to be accessible at the same place as index.php on your server. (One way to accomplish this is with a symbolic link on the server from the directory containing index.php into extensions/BotQuery).
- Install the script by adding these lines to your user javascript file on that wiki:
// [[User:Lupin/popups.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
- If the query extension isn't installed, you should add the option popupUseQueryInterface=false;.
- The script may now work when you clear your cache.
- If not, you should add the following lines to your user javascript file:
function siteArticlePath(){ return 'APATH'; } function siteBotInterfacePath(){ return 'BPATH'; }
- Here, APATH and BPATH can be determined from the following table.
APATH | BPATH | |
---|---|---|
Page | Main page | Main page history |
Url | http://your.host.com:port/path/to/yourwiki/index.php/Main_Page | http://your.host.com:port/path/to/yourwiki/index.php?title=Main_Page&action=history |
Use this value | path/to/yourwiki/index.php | path/to/yourwiki |
Note that the index.php part of the Main page url may or may not be present, depending on how your wiki is set up, and this should be reflected in the value of APATH. Neither APATH nor BPATH should begin or end with a slash.