Last modified: 2011-12-15 17:15: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 T26299, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24299 - Wrong section dividing
Wrong section dividing
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.17.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://zh.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-07 11:00 UTC by Liangent
Modified: 2011-12-15 17:15 UTC (History)
0 users

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


Attachments

Description Liangent 2010-07-07 11:00:30 UTC
See the given revision. I forgot to add "tl|" in the last section title.

The parser didn't give an [edit] link for the last section (section 47), but when I clicked the [edit] link for section 46, it didn't give me the wikitext in section 47, which could be edited (getting wikitext and saving) with section=47 if I typed it manually.
Comment 1 Krinkle 2010-07-07 11:12:27 UTC
The headline in question is

<pre>
== 本地{{hideH}}模板使得没有鼠标的用户无法阅读其中内容 ==
</pre>

The {{hideH}} template is comparable to en.wiki's Collapse DIV's things.
I asume the reason for this is because it's adding a block level element, thus the [edit] link can't be added anywhere good.

however it is interesting that section=n manually does work. Presumably because the code for section=n looks at the source code directly and find a perfectly fine == heading == there.
Comment 2 Liangent 2010-07-07 11:56:57 UTC
I guess the normal renderer doesn't recognize that 'section' as a section because it's even not in TOC; not knowing where to put the link is not a blocker. However, the parser used for &section= recognizes that 'section' as a section, which leads to this bug.
Comment 3 Liangent 2010-07-13 05:55:05 UTC
Another case: http://zh.wikipedia.org/w/index.php?title=Wikipedia:%E4%BA%92%E5%8A%A9%E5%AE%A2%E6%A0%88/%E5%85%B6%E4%BB%96&oldid=13703709

where the section title is 

== [[mw:Extension ==

The parser renders it as a section (uses <h2>), puts it in TOC, but doesn't give it an [edit] link. &action=edit&section= doesn't treat it as a section.
Comment 4 Liangent 2011-12-15 17:15:35 UTC
Some more cases:

== {{ ==

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


Navigation
Links