Page MenuHomePhabricator

__TOC__ replaces $0
Closed, ResolvedPublic

Description

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).


Version: 1.6.x
Severity: normal
URL: http://en.wikipedia.org/wiki/User:Alerante/Scratch/Header_weirdness

Details

Reference
bz4453

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:59 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz4453.
bzimport added a subscriber: Unknown Object (MLST).