Extension:CategoryStepper

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
CategoryStepper

Release status: stable

Image:CategoryStepper Screenshot.png
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) MinuteElectron Talk
Version 1.5
MediaWiki 1.11 or higher
License GNU General Public License 2.0 or later
Download Source Code
README
#Releases
Hooks used

OutputPageBeforeHTML

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.

[edit] Installation

  1. Place the CategoryStepper.php source code into extensions/CategoryStepper/CategoryStepper.php.
  2. Place the CategoryStepper.i18n.php source code into extensions/CategoryStepper/CategoryStepper.i18n.php.
  3. If desired place the CategoryStepper.css source code into skins/CategoryStepper.css.
  4. Add require_once( "extensions/CategoryStepper/CategoryStepper.php" ); to LocalSettings.php.
  5. Enjoy!

[edit] Usage

Fill the $wgCategoryStepper variable (in LocalSettings.php) with a list of category names to stepper box titles.

$wgCategoryStepper[ "Astronauts" ] = "Astronauts Box Title";

Alternatively set the variable to false and use the MediaWiki:Categorystepper page to set options.

LocalSettings.php:
$wgCategoryStepper = false;
MediaWiki:Categorystepper:
* Astronauts|Astronauts Box Title

[edit] Releases

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().
Personal tools