Extension:PaginateText

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
PaginateText
Release status: beta
Implementation Tag
Description Paginates a long block of text
Author(s) Ike Hecht (Tosfostalk)
Latest version 0.1.0 (December 2014)
MediaWiki 1.23
PHP 5.3
Database changes No
License GNU General Public License 2.0 or later
Download
Translate the PaginateText extension if it is available at translatewiki.net
Check usage and version matrix.

The PaginateText extension paginates a long block of text contained in a wiki page.

Installation[edit]

  • Download and place the file(s) in a directory called PaginateText in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'PaginateText' );
    
    If installing from git, don't forget to do git submodule init && git submodule update. Otherwise, the extension will not work.
  • Yes 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( 'PaginateText' );, you need to use:

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

Usage[edit]

<paginatetext>A really huge block of text ... that ends here.</paginatetext>

The pages default to a height of 600px. This can be modified by passing a height parameter. For example:

<paginatetext height=300px>A really huge block of text ... that ends here.</paginatetext>