https://bugzilla.wikimedia.org/show_bug.cgi?id=35216
Web browser: ---
Bug #: 35216
Summary: __NOEDITSECTION__ not working with gallery
Product: MediaWiki
Version: 1.18.1
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
I found a rather obscure bug in action=parse. While using the __NOEDITSECTION__
behavior switch on wikitext that contains a heading and a gallery, the section
edit link is nevertheless returned. Take the following wikitext:
"
== Headline ==
<gallery>
Image:Example.jpg|Caption1
</gallery>"
Make the following request:
text=__NOEDITSECTION__%0A%3D%3D+Headline+%3D%3D%0A%3Cgallery%3E%0AImage%3AExample.jpg%7CCaption1%0A%3C%2Fgallery%3E&format=json&action=parse
The response includes the unwanted edit link:
<span class="editsection">[<a
href="/mediawiki/index.php?title=API&action=edit&section=1" title="Edit
section: Headline">edit</a>]</span>
What's interesting is that removing the "|Caption1" from the wikitext fixes the
problem.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l