Last modified: 2006-01-04 00:38:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 4453 - __TOC__ replaces $0
__TOC__ replaces $0
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-01-02 20:04 UTC by alerante
Modified: 2006-01-04 00:38 UTC (History)
0 users

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


Description alerante 2006-01-02 20:04:31 UTC
If the __TOC__ magic word is used to force the placement of the table of contents in a certain location, a blank string 
will replace any instance of $ followed by any string of digits (not including ".") in the TOC. "$0" is an exception; it 
is replaced by "__TOC__".

I tested this on my personal wiki running 1.5.3 on Mac OS X 10.4 and Wikipedia-en running 1.6alpha. More evidence can be 
seen at <> (note 
that "$0.02" becomes "__TOC__.02" in the table of contents).
Comment 1 Brion Vibber 2006-01-04 00:38:12 UTC
Fixed in CVS HEAD.

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