Page MenuHomePhabricator

Section editing broken by <include> tags
Open, LowPublic

Description

Author: circeus

Description:
Placing <noinclude>, <includeonly> or <onlyinclude> tags next to the "==" parts of a header is allowed, and does not affect the layout, but breaks section editing links.

<noinclude>== header ==

text</noinclude>

Will display normally, but the section becomes impossible to edit. This appears particularly with <onlyinclude> used for the [[Wikipedia:Featured content]] lists.


Version: unspecified
Severity: minor
URL: http://www.mediawiki.org/wiki/User:Simetrical/10468

Details

Reference
bz10468

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:51 PM
bzimport set Reference to bz10468.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

See also bug 4899 and dependencies. This looks like yet another consequence of logic duplication between Parser and other stuff. However, I can't reproduce with the provided code (see URL).

circeus wrote:

Maybe it has to do with the version of MediaWiki Wikipedia uses? And is it possible the section 0 edit link script interferes?

ayg wrote:

All Wikimedia installations are using the same version of the software. If you think JavaScript may be an issue (unlikely), please turn off JavaScript to test and then report back. Try to make a page wherever you like exhibiting the problem and link to it from here. We can't do very much if we can't see the bug occurring.

EN.WP.ST47 wrote:

Here is an example revid of this bug from Wikipedia:
http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=417997227

Present in 1.16.2 release as well:
Installed software

Product Version
MediaWiki 1.16.2
PHP 5.2.0-8+etch16 (cgi-fcgi)
MySQL 5.0.51a-24+lenny2+spu1
Installed extensions

Extension functions
wfwebsiteFrame
Parser extension tags
<gallery>, <nowiki>, <pre> and <websiteframe>
Parser function hooks
anchorencode, basepagename, basepagenamee, defaultsort, displaytitle, filepath, formatdate, formatnum, fullpagename, fullpagenamee, fullurl, fullurle, gender, grammar, int, language, lc, lcfirst, localurl, localurle, namespace, namespacee, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, numberofviews, padleft, padright, pagename, pagenamee, pagesincategory, pagesize, plural, protectionlevel, special, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subpagename, subpagenamee, tag, talkpagename, talkpagenamee, talkspace, talkspacee, uc, ucfirst and urlencode

Aklapper removed a project: Parser.Mar 16 2020, 4:42 PM