waldyrious / primerpedia

Simplified extracts of Wikipedia articles, showing just the basic information.
https://primerpedia.toolforge.org
Other
11 stars 7 forks source link

Don't show disambiguation pages when using random function #11

Closed waldyrious closed 7 years ago

waldyrious commented 11 years ago

What others should be hidden as well? maybe lists?

waldyrious commented 11 years ago

Possibly look for membership on the undesired categories, e.g.:

waldyrious commented 11 years ago

This could be fixed in MediaWiki itself (bug 7937)

waldyrious commented 11 years ago

Here's a hack: api.php?action=query&prop=categories&clcategories=Category:All_disambiguation_pages (inspired on this message)

waldyrious commented 8 years ago

Update: 9 years after it was open, bug 7937 (now T9937) has been resolved.

Todo: confirm if this solves the issue for Primerpedia or if something needs to be done in the API query.

waldyrious commented 7 years ago

Yup, it seems like this behavior is now hard-baked into Extension:Disambiguator, which is installed on Wikipedia. Still not 100% sure it applies to API queries too, but we can always reopen if we find out it doesn't.