From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎日本語 • ‎latviešu • ‎polski • ‎sicilianu
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Special page, Search, Data extraction
DescriptionTemplate:Extension#description Maintains a table with hash values for category intersections within a page to allow searching category intersections
Author(s)Template:Extension#username Magnus Mansketalk
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
Hooks usedTemplate:Extension#hook

Translate the CategoryIntersection extension if it is available at translatewiki.net

Check usage and version matrix.

What can this extension do?[edit]

This template creates a special page - Special:CategoryIntersection. You put in a list of categories to this page (separated by newlines), and the extension returns the articles that are in all the categories listed. It stores hashes of what categories a page is in in a separate table in db to (I assume) make things efficient. Somewhat akin to the DynamicPageList extensions (but probably much more efficient).

Note Note: This extension might not handle a single page being in a large number of categories very well.


To install this extension, do the following:

  1. add the following to LocalSettings.phpManual:LocalSettings.php:
  2. Run the update.phpManual:update.php maintenance script
  3. Run the refreshLinks.phpManual:refreshLinks.php maintenance script. (Warning Warning: This may take a long time if you have a lot of pages on your wiki. If you don't do this step, the extension will only find pages that had their categories added after the extension was installed)


Use this wiki mark-up code on the wiki page to view the results.


Some example wiki pages that use this extension include: (Feel free to insert your wiki page.)