Extension:CategoryStepper

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
CategoryStepper

Release status: stable

Implementation User interface
Description Displays a category stepper box allowing one to navigate forward and backwards alphabetically through one or more categories a page is in.
Author(s) Robert Leverington (RobertLtalk)
Latest version 1.5
MediaWiki 1.11 or higher
License GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
README
#Releases
Hooks used
OutputPageBeforeHTML

Translate the CategoryStepper extension if possible

Check usage and version matrix; code metrics

The CategoryStepper extension displays a category stepper box allowing one to navigate forward and backwards alphabetically through one or more categories a page is in, as specified via a MediaWiki: namespace page or the $wgCategoryStepper configuration variable.

Bugs and feature requests should be added to MediaZilla under the 'MediaWiki extensions' product and 'CategoryStepper' component.

Installation[edit | edit source]

  1. Download the latest snapshot and extract it to your extensions directory.
  2. Add require_once( "extensions/CategoryStepper/CategoryStepper.php" ); to LocalSettings.php.
  3. Enjoy!

Configuration[edit | edit source]

Two methods of configuring this extension are offered.

Array in LocalSettings.php[edit | edit source]

Set the $wgCategoryStepper variable in LocalSettings.php to an array of category names to the title of the category box.

For example:

$wgCategoryStepper = array( 'Astronauts' => 'Astronauts Box Title' );

Message in the MediaWiki namespace[edit | edit source]

Alternatively set $wgCategoryStepper = false; in LocalSettings.php, and edit the MediaWiki:Categorystepper page to set the categories.

For example:

* Astronauts|Astronauts Box Title

Usage[edit | edit source]

The category stepper box will automatically appear on all pages that are within a category that is configured within the extension.

Releases[edit | edit source]

Version Release date Comments
1.1 2008-01-19 Original version.
1.2 2008-01-20 Added missing space in i18n file.
1.3 2008-02-16
  • No longer render on edit, protect or delete pages.
  • Allow modification of categories and title via the MediaWiki:categorystepper page.
1.4 2008-02-17 The second parameter of each row on the MediaWiki:categorystepper page is now optional and defaults to the first parameter.
1.5 2008-02-26
  • Default styling now applied.
  • Added README.
  • ltrim() now used instead of preg_replace().