Last modified: 2006-01-04 00:38:12 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 T6453, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4453 - __TOC__ replaces $0
__TOC__ replaces $0
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.6.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/User:Ale...
:
Depends on:
Blocks:
  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: ---


Attachments

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 <http://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Requests_for_comment/Kelly_Martin&oldid=33608782> (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.


Navigation
Links