Extension:ForceTocOnEveryPage

From Linux Web Expert

Revision as of 08:34, 18 March 2023 by imported>Pppery (-archived)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
ForceTocOnEveryPage
Release status: stable
Implementation Tag
Description Forces a table of contents to be displayed on every page.
Author(s) Jmkim dot com
Latest version 2.0 (2019-05-05)
MediaWiki 1.31+
Database changes No
License GNU General Public License 2.0
Download
Example zetawiki.com
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

The ForceTocOnEveryPage extension forces a table of contents to be displayed on every page except on main page, in edit mode, and within special namespaces.

Installation

  • <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>ForceTocOnEveryPage</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'ForceTocOnEveryPage' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

See also