Page MenuHomePhabricator

Add ability to position the conditionally shown TOC
Open, LowPublic

Description

Currently there are

  • __FORCETOC__ that enforces displaying of the TOC even if it has less than specified number of items on its usual position.
  • __TOC__ that enforces displaying of the TOC even if it has less than specified number of items on given position.

There is no way, how to place the TOC on given position AND have it displayed only when it's larger than specified number of items.

Suggesting the __SOFTTOC__, __CONDTOC__, __VARTOC__ or __FLOWTOC__ magic word for that.

Also mind T19587: alias __TOC__ to {{#TOC}} and add TOC style options to such parser function when solving this.

Details

Reference
bz46421

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:37 AM
bzimport set Reference to bz46421.
bzimport added a subscriber: Unknown Object (MLST).

Errm, so
{|align=right

|__TOC__
|}

style does not work?
(I might completely fail to understand the problem here?)

Yes you do... ;-) Try to read it once more. The 3rd paragraph completely and precisely describes the issue.

(In reply to Description)

Currently there are

  • FORCETOC that enforces displaying of the TOC even if it has less than

specified number of items on its usual position.

  • TOC that enforces displaying of the TOC even if it has less than

specified number of items on given position.

There is no way, how to place the TOC on given position _AND_ have it
displayed
only when it's larger than specified number of items.

Suggesting the SOFTTOC, CONDTOC, VARTOC or FLOWTOC magic word
for that.

Also mind bug 17587 when solving this.

Ummm. I can confirm that TOC will place a Table of Contents at it's location EVEN if there are less than the specified number of items in it.

Can this be closed now? _TOC_ does what the original request asked for. Thinking INVALID.

(In reply to comment #5)

Can this be closed now? _TOC_ does what the original request asked for.
Thinking INVALID.

No, please read carefully the description and try to play on sandbox if necessary.

Danny_B updated the task description. (Show Details)
Danny_B removed a subscriber: wikibugs-l-list.