Open main menu

Extension:PSINoTocNum

MediaWiki extensions manual
OOjs UI icon advanced.svg
PSINoTocNum
Release status: unmaintained
ScreenPSINoTocNum.png
Implementation Extended syntax
Description New magic word __NOTOCNUM__ to disable TOC numbering.
Author(s) Benedikt Meuthrath
Latest version 1 (2007-04-17)
MediaWiki 1.9
License GPLv2 or later
Download Template:WikimediaDownload/svn
Example KrefeldWiki
Translate the PSINoTocNum extension if it is available at translatewiki.net
Check usage and version matrix.

Contents

What can this extension do?Edit

This extension realizes a new ‘magic word__NOTOCNUM__. If an article contains this magic word, (auto)numbering in the table of contents (TOC) is disabled through extra CSS.

UsageEdit

  • Add __NOTOCNUM__ to any article.

InstallationEdit

  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 alsoEdit

BugsEdit

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