Extension:Random Pages

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

Release status: beta

Implementation Tag
Description Adds <randompages /> tag
Author(s) Aurelian Oancea
Last version 0.2 (21th of March, 2008)
MediaWiki 1.11.0+
License No license specified
Download http://www.locknet.ro/files/RandomPages-0.2.zip
<randompages limit="150" /> to limit only to 150 random entries
Example Hindupedia, the Hindu Encyclopedia
Parameters

limit (int) and namespace (bool)

Check usage (experimental)

Random Pages returns one or more randomly selected pages.

Contents

[edit] Overview

License: GPL-v3, see COPYING file for full licencing information

URL: http://locknet.ro/archive/2008-03-21-mediawiki-random-pages.html

[edit] Install

Unpack the zip file to your MediaWiki extension folder.

Then you can enable the extension in your LocalSettings.php:

require_once( "{$IP}/extensions/RandomPages/RandomPages.php" );

Then go edit a page and use the <randompages /> tag.

Installation can be verified through the Special:Version page on the wiki.

[edit] Usage

RandomPages adds a new MediaWiki wiki parser tag: <randompages />

Available options:

  • limit int, to control how many links should be fetched randomly from the database, defaults to 150
  • namespace bool, true to restrict only to the global namspace, defaults to false
  • levels int, levels of CSS applyed to each entry, defaluts to 5
 <randompages limit="10" namespace="true" levels="10" />

Gets 10 random pages from the global namespace with 10 levels of style

[edit] Development

http://gitorious.org/projects/randompages

[edit] Feature Requests / Bugs

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox