Extension:PSINoTocNum

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

Release status: stable

ScreenPSINoTocNum.png
Implementation Extended syntax
Description New MagicWord __NOTOCNUM__ to disable TOC numbering.
Author(s) Benedikt Meuthrath
Last version 1 (17.04.07)
MediaWiki 1.9.x
License GPLv2 or later
Download
Example KrefeldWiki
Hooks used
ParserBeforeInternalParse

MagicWordwgVariableIDs

Check usage and version matrix

Contents

What can this extension do? [edit]

This extension realizes a new MagicWord __NOTOCNUM__. If an article contains this MagicWord numbering in the table of contents (TOC) is disabled by extra CSS.

Usage [edit]

  • Add "__NOTOCNUM__" to any article.

Installation [edit]

  1. Download the PSINoTocNum.php file and put it into your wiki's extension folder.
  2. Include the extension in LocalSettings.php by adding:
    require_once("extensions/PSINoTocNum.php");
    
  3. Put the CSS code into Common.css (see MediaWiki:Common.css):
    .tocnumber {display:none;}
    

See also [edit]

Related extensions:

Bugs [edit]

For some (or all) people this extension does not work correctly. Please see discussion page for a solution.