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

           Summary: Have result list count displayed in API output, also
                    option to only get count
           Product: MediaWiki
           Version: 1.14-svn
          Platform: All
               URL: http://en.wikipedia.org/w/api.php?action=query&prop=cate
                    gories&titles=Albert%20Einstein
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@home.nl
        ReportedBy: s...@reedyboy.net
                CC: bryan.tongm...@gmail.com, vasi...@gmail.com


Would it be possible on (possibly all?) queries that are getting links on
pages, categories on page, pages in category, etc, have an option (or even just
by default), a number of results returned?

ie for the link above,

instead of 
        <categories>
          <cl ns="14" title="Category:1879 births" />
          <cl ns="14" title="Category:1955 deaths" />
          <cl ns="14" title="Category:Academics of the Charles University" />
          <cl ns="14" title="Category:Albert Einstein" />
          <cl ns="14" title="Category:American humanists" />
          <cl ns="14" title="Category:American pacifists" />
          <cl ns="14" title="Category:American philosophers" />
          <cl ns="14" title="Category:American physicists" />
          <cl ns="14" title="Category:American socialists" />
          <cl ns="14" title="Category:American vegetarians" />
        </categories>

something like

        <categories count="10">
          <cl ns="14" title="Category:1879 births" />
          <cl ns="14" title="Category:1955 deaths" />
          <cl ns="14" title="Category:Academics of the Charles University" />
          <cl ns="14" title="Category:Albert Einstein" />
          <cl ns="14" title="Category:American humanists" />
          <cl ns="14" title="Category:American pacifists" />
          <cl ns="14" title="Category:American philosophers" />
          <cl ns="14" title="Category:American physicists" />
          <cl ns="14" title="Category:American socialists" />
          <cl ns="14" title="Category:American vegetarians" />
        </categories>


And an option to be able to go &countonly (or something), and just be returned

<categories count="10" />

Please?


Thanks


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to