https://bugzilla.wikimedia.org/show_bug.cgi?id=16516

           Summary: API: rvsection= doesn't work for included sections like
                    "T-2"
           Product: MediaWiki
           Version: 1.14-svn
          Platform: All
               URL: http://en.wikipedia.org/w/api.php?action=query&titles=Wi
                    kipedia:Village_pump_(technical)&prop=revisions&rvprop=c
                    ontent&rvsection=T-2
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED], [EMAIL PROTECTED]


Included sections get the prefix "T-" so the parser knows it has only to
consider the actually included part of a page (sections within
<noinclude>...</noinclude>) are ignored). However, if you pass a section number
like T-2 to the api with prop=revisions&rvprop=content&rvsection=T-2 , you'll
always get the first section, probably because section numbers are validated as
integers by the api.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to