Extension:Dynamic Category Map

From MediaWiki.org

Jump to: navigation, search

     

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
DynamicCategoryMap

Release status: unknown

Implementation  Tag
Description provide add-on navigation ability across the whole site
MediaWiki  1.5
License No license specified
Download see below

check usage (experimental)

Contents

[edit] Introduction

DynamicCategoryMap is a Mediawiki 1.5 extension. It is designed to provide add-on navigation ability across the whole site. It will list all categories of the first two levels (top categories with their children) dynamically and arrange their output in a user-friendly manner. Follow links of each category in the map, user could easily find all articles and sub-categories in it.

This extension is written with the help from Dynamic Page List.

[edit] Prerequisite

  • PHP 5 or above is needed.

[edit] Installation

  • Follow the links below to download source code.
  • Copy the contents in pdf out, and create corresponding php source files.
  • Copy DynamicCategoryMap.php to "extensions" folder.
  • Copy CategoryTravelerBase.php , CategoryNode.php , CategoryMap.php to "includes" folder.
  • Add a line require_once( "extensions/DynamicCategoryMap.php" ); into "LocalSettings.php".

[edit] Usage

[edit] Tag and its Parameters

Tag Name DynamicCategoryMap
Parameters title (optional) Title of the output category map

Note: the only parameter of Dynamic Category Map is "title", which could be omitted.

[edit] Samples

A sample snapshot of Dynamic Category Map is shown below.

m:Image:Sample Dynamic Category Map.png

The underlaying wiki codes are:


 <DynamicCategoryMap>
   title=Find Information in the Topic Categories
 </DynamicCategoryMap>