Last modified: 2014-02-12 23:35:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48421, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46421 - Add ability to position the conditionally shown TOC
Add ability to position the conditionally shown TOC
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest, parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-21 14:34 UTC by Danny B.
Modified: 2014-02-12 23:35 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Danny B. 2013-03-21 14:34:26 UTC
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.
Comment 1 Andre Klapper 2013-03-21 14:56:59 UTC
Errm, so
 {|align=right
  |__TOC__
  |}
style does not work?
(I might completely fail to understand the problem here?)
Comment 2 Danny B. 2013-03-22 13:33:44 UTC
Yes you do... ;-) Try to read it once more. The 3rd paragraph completely and precisely describes the issue.
Comment 3 Liangent 2013-03-22 13:47:47 UTC
__AUTOTOC__ ?
Comment 4 Technical 13 2013-05-06 15:34:31 UTC
(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.
Comment 5 Technical 13 2013-06-13 12:29:57 UTC
Can this be closed now?  _TOC_ does what the original request asked for.  Thinking INVALID.
Comment 6 Danny B. 2013-06-18 20:25:31 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links