Extension:NamespacePopups

NamespacePopups extension automatically adds a small popup (see Extension:PagePopups) link at the right of links of certain namespaces.

Normal namespaces are mapped to popup namespaces with $wgNamespacePopupsNamespaceMap configuration variable.

For an example see https://withoutvowels.org/wiki/Tanakh:Genesis_1:1 (at the time of writing this, only the first (from the right) word בראשית is tagged).

Installation
First install Extension:PagePopups.

Configuration parameters
Do not forget to set $wgArticlePath!

If '*' is mapped it is applied to every namespace (including empty namespace). If '*' is mapped to '*', for every link it is displayed a popup link with the same target.
 * $wgArticlePath: TODO
 * $wgNamespacePopupsNamespaceMap: an associative array mapping a normal namespace into a popup namespace.

Examples:

$wgNamespacePopupsNamespaceMap = array('A' => 'B');

(display  popup link for every   link).

$wgNamespacePopupsNamespaceMap = array('A' => 'B', 'C' => D);

(display  popup link for every   link and also display   popup link for every   link).

$wgNamespacePopupsNamespaceMap = array('*' => 'B');

(display -namespace popup link for every link to every namespace (including the empty namespace).

$wgNamespacePopupsNamespaceMap = array( '' => 'B');

(display -namespace popup link for link with empty namespace.

$wgNamespacePopupsNamespaceMap = array('*' => '*');

(near each link display a popup link with the same target as the main link).


 * $wgNamespacePopupsAnchor: the popup link text (default '&uarr;')

Bugs

 * Most likely it is wrong with interwiki links
 * Popup should be centered around the main link, not the supplementary popup link (do you agree?)
 * "New" (blue/red) status of popup links is not updated. Need to run  manually :-( See this StackOverflow question for advices how to do this. I attempted to fix this bug in   Git branch, but in whatever reason my fix doesn't work.