User talk:Matteo/popups.js

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? // User:Lupin/popups.js
 * 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:

document.write(' '); function siteArticlePath{ return 'APATH'; } function siteBotInterfacePath{ return 'BPATH'; }
 * 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:
 * Here, APATH and BPATH can be determined from the following table.

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.