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 Download snapshot
Subversion [Help]

Browse source code
View code changes

Example KrefeldWiki
Hooks used
ParserBeforeInternalParse

MagicWordwgVariableIDs

Check usage (experimental)

Contents

[edit] What can this extension do?

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.

[edit] Usage

  • Add "__NOTOCNUM__" to any article.

[edit] Installation

  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;}
    

[edit] See also

Related extensions:

[edit] Bugs

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

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