*** Welcome to piglix ***

Wikipedia:Popups


If you're having trouble, you may like to peruse some frequently asked questions.

You must have a user account to install and use the Navigation popups feature. If you do not have an account, you will need to and log in.

Alternatively if you wish to add this to a specific skin rather than a file that works for all skins (as above), then

Note: the link above is to skin.js, which should take you to the correct page if you have JavaScript enabled. For reference, the relevant file you will need to edit is listed below.

Add the following to your user script file:

To uninstall the script, delete the above lines from the same page and clear your browser's cache.

This tool generates "popup hints" when you hover the mouse pointer over active links and images. These popups provide information about the link's target and give quick access to a number of relevant actions.

If you hold the shift key then you can drag the popup around.

Popups depend on the type of link:

By editing your user CSS file, you can change the appearance of the popups. Your user CSS file has exactly the same name as the JavaScript file, but with "css" instead of "js" at the end. So you should edit .

Here is an example which gives an orange-flavoured popup with a border and changes the font used. This makes the popups look pretty silly, but it shows the sort of thing you can do if you feel like it.

There are some options that you can set. To do so, edit your and add a line of the form

where option and value are chosen from the table below. For example, to turn on extensive menus and turn on admin links, you need to add something like this in your JavaScript file:

Note that to set this variable, you need to include the single quotes, e.g. popupStructure='fancy';.

More options may be added, and requests for more configurbility are welcome.

You can define custom filters for articles. These are JavaScript functions which are run after the page statistics are generated, and their output is appended (as HTML) to that part of the popup. (Note that if simplePopups is true or popupSummaryData is false, then nothing will be displayed.)

Then when a popup is generated for a page containing an HTML table, you should see <table> in the popup. (It may also appear for other pages, such as this page. Correcting this defect is left as an exercise for the reader.)

If you want to enable popupRedlinkRemoval, popupFixRedirs and popupFixDabs features in all pages except the special ones, histories and previews (where those features are obviously useless) you can add these lines to your user JavaScript file:


...
Wikipedia

...