On Thu, Jun 20, 2013 at 4:38 PM, Pavan Kapanipathi <pavan(a)knoesis.org> wrote:
Is there a way (ex: API - params) to get the main
article for a category on
wikipedia.
Not really, MediaWiki doesn't have a concept of a "main" article for a
category.
The example you note is just in the category page text, you'd have to
parse that out somehow. I've also seen the main article sometimes be
listed in the category with a sortkey of " "; again, this is something
done by editors on the wiki and not a feature of MediaWiki itself.
--
Brad Jorsch
Software Engineer
Wikimedia Foundation