Last modified: 2008-09-26 08:43:25 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 T17731, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15731 - Categorylinks table not populating correctly
Categorylinks table not populating correctly
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-26 07:48 UTC by MZMcBride
Modified: 2008-09-26 08:43 UTC (History)
1 user (show)

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


Attachments

Description MZMcBride 2008-09-26 07:48:01 UTC
http://en.wikipedia.org/w/api.php?action=query&prop=links&titles=10.5%20(TV%20miniseries)&pllimit=500&plnamespace=14

That query is listing links to category pages for this page: http://en.wikipedia.org/w/index.php?title=10.5_(TV_miniseries)&oldid=240036162

However, after running the page through ExpandTemplates, it is somewhat apparent that the categorylinks table isn't being properly used. The output looks like: [[Category:All articles with unsourced statements]][[Category:Articles with unsourced statements since March 2007]]

Those links indicate that the links would go in the categorylinks table, however, oddly, the second category seems to be being put in the pagelinks table. This is a fairly common quirk on the English Wikipedia.
Comment 1 Tim Starling 2008-09-26 08:01:55 UTC
The API output is:

<?xml version="1.0" encoding="utf-8"?>
<api>
  <query>
    <pages>
      <page pageid="640040" ns="0" title="10.5 (TV miniseries)">
        <links>
          <pl ns="14" title="Category:Articles with unsourced statements since March 2007" />
          <pl ns="14" title="Category:Film articles needing expert attention" />
        </links>
      </page>
    </pages>
  </query>
</api>

The article text is said to not contain any initial-colon category links.
Comment 2 Tim Starling 2008-09-26 08:43:25 UTC
The links in question are added by #ifexist. This is expected.

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


Navigation
Links