Extension:PSINoTocNum

From MediaWiki.org
Jump to navigation Jump to search
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.

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.

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 the discussion page for a solution.