Extension:PanScroll

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
PanScroll
Release status: beta
Implementation Tag
Description This extension will allow an element to be scrolled through the use of panning (drag & drop)
Author(s) Mathias Lidal
Latest version 0.1 (2012-06-18)
Database changes No
License GPLv3
Download
CHANGELOG
Translate the PanScroll extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?[edit]

This extension will allow an element to be scrolled through the use of panning (drag & drop)

Usage[edit]

Download instructions[edit]

  1. Download the extension from the right hand side menu.
  2. Unpack the extension in your mediawiki installation under the folder extensions

Installation[edit]

To install this extension, add the following to LocalSettings.php:

#add configuration parameters here
#setup user rights here
require_once("$IP/extensions/PanScroll/PanScroll.php");

Configuration parameters[edit]

Name Description Instance example usage
width Set width of the PanScroll container. Can be either absolute value (e.g. 500px) og a percentage which will be a percentage of the width of the contained element. <panscroll width="500px">
height Set height of the PanScroll container. Can be either absolute value (e.g. 500px) og a percentage which will be a percentage of the height of the contained element. <panscroll height="500px">

Example usage[edit]

<panscroll width="500px" height="500px">
{| class="wikitable"
.
.
}
</panscroll>