Open main menu


MediaWiki extensions manual
OOjs UI icon advanced.svg
Article To Category 2
Release status: stable
Implementation Page action
Description Adds an inputbox to each category page. The content of new page will contain "[[category:]]" automatically. See doc. for optional features.
Latest version 1.2 (2017-11-02)
MediaWiki 1.29+
Database changes No
License GNU General Public License 3.0 or later
  • $wgarticletocategory2ConfigBlacklist
Translate the ArticleToCategory2 extension if it is available at
Check usage and version matrix.
Issues Open tasks · Report a bug

The Article To Category 2 extension adds an inputbox to each category page. The content of new page will contain "[[Category:]]" automatically.[1] See section Configuration for optional behavior.



The extension can be retrieved directly from Git [?]:

  • Browse code
  • Some extensions have tags for stable releases.
  • Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).

Extract the snapshot and place it in the extensions/ArticleToCategory2/ directory of your MediaWiki installation.

If you are familiar with git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/
git clone


  • Download and place the file(s) in a directory called ArticleToCategory2 in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'ArticleToCategory2' );
    $wgGroupPermissions['*']['ArticleToCategory2'] = true;
    $wgGroupPermissions['*']['ArticleToCategory2AddCat'] = false;
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


User permissionEdit


Set this flag to true and a second input box will be added, where the users may add categories into categories.



Set this flag to true to enable the category blacklist in "MediaWiki:Add Article to Category 2 excluded categories" page (you need to create this page first). Usage (example):

== Excluded Categories from Add To Article 2 Extension ==

;My Excluded category 1
;My Excluded category 2

;Another one

If you don't like the name of this page, you can replace it by changing the following line in the GetExcludedCategories() function :

     $specialcatpage='Add Article to Category 2 excluded categories';


  1. The text (i.e "Category" in English) depends on what language the MediaWiki is using.