alias __TOC__ to {{#TOC}} and add TOC style options to such parser function
Open, NormalPublic

Description

out of all magic names of the form __some-name__ only __TOC__ inserts something at the place where it is included in the wiki
text. All other of the kind influence only how a page is rendered.

Thus, for the sake of consistency, add another name, like {{#TOC}} or similar, and after a while phase __TOC__ out.

Not proposed here and now, but something possibly worth thinking about: There could later be {{#TOC:parameters}} as to influence the style of the toc, such as with/out numbering,
right/center/left, with/out "hide" button, initially un/hidden, general or page-specific sticky hide, width, CSS-id, CSS-class, etc.


Version: unspecified
Severity: enhancement

Details

Reference
bz17587
bzimport raised the priority of this task from to Low.
bzimport set Reference to bz17587.
bzimport added a subscriber: Unknown Object (MLST).

{{TOC}} is a bit ofrisk regarding templates that currently exit and do this already.

{{#TOC}} would work I guess, although some of the options listed there seem like overkill / too many options, the following sound useful though. Implementation ala [[File:]] sounds great, so that the order won't matter, nor are parameter names required and the values can be easily localized for content language.

  • left/right (unnamed parameter, default left, inserts a class, styled via shared.css)
  • maxlevel=[1-6] (dont show headings higher than this level)
  • class='' (adds additinonal classes to the default 'toc' class, such as visualClear, or fancy-toc)
Danny_B updated the task description. (Show Details)Jan 20 2016, 8:07 AM
Danny_B set Security to None.
Danny_B updated the task description. (Show Details)
Danny_B raised the priority of this task from Low to Normal.Jan 20 2016, 8:11 AM
Meno25 removed a subscriber: Meno25.Feb 22 2016, 5:54 PM
Izno added a subscriber: Izno.Sep 20 2017, 2:59 PM

A replacement for Compact TOC might be nice too.

Krinkle removed a subscriber: Krinkle.
Krinkle removed a subscriber: wikibugs-l-list.