Extension:PagePopups

From MediaWiki.org
Jump to: navigation, search


MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
PagePopups

Release status:Extension status beta

ImplementationTemplate:Extension#type Ajax
DescriptionTemplate:Extension#description transforms some links into popups with complete page text
Author(s)Template:Extension#username VictorPortontalk
Latest versionTemplate:Extension#version 0.0.1
MediaWikiTemplate:Extension#mediawiki 1.28
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
README
ParametersTemplate:Extension#parameters

none

Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/BeforePageDisplay

Translate the PagePopups extension if it is available at translatewiki.net

Check usage and version matrix.

The PagePopups extension makes <span class="mw-pagepopup">[[Link]]</span> transforming into a popup, which shows the complete text (scrolling if necessary) of the page [[Link]].

(Does not work!) Note that you can put more than one link into <span class="mw-pagepopup">: <span class="mw-pagepopup">[[Link1]] | [[Link2]]</span>.

Installation[edit]

  • Download and place the file(s) in a directory called PagePopups in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'PagePopups' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'PagePopups' );, you need to use:

require_once "$IP/extensions/PagePopups/PagePopups.php";

Bugs[edit]

  • Add arrow to the popup
  • Options or configuration for specifying popup size
  • Make place (up, down, left, right) where the popup shows configurable
  • Wrong size of the popup for small pages, also the size "jumps" when resizing a small page with the mouse (why?)
  • Popup link inside a popup work wrongly (the new popup is displayed at the top left corner of the window instead of its proper place)

See also[edit]