Jump to content
MediaWiki

Extension:ArticleToCategory2

From mediawiki.org

This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored.

If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox.

MediaWiki extensions manual
Article To Category 2
Release status: unmaintained
px
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.
Author(s)
Latest version 1.3 (2018年02月03日)
MediaWiki >= 1.40.0
Database changes No
  • $wgArticleToCategory2ConfigBlacklist
  • ArticleToCategory2
  • ArticleToCategory2AddCat
Licence GNU General Public License 2.0 or later
Download
Translate the ArticleToCategory2 extension if it is available at translatewiki.net
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.

Installation

[edit ]
Users of MediaWiki 1.33+ need to use the version for MediaWiki 1.35+.
  • Download and move the extracted ArticleToCategory2 folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cdextensions/
    gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/ArticleToCategory2
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ArticleToCategory2' );
    $wgArticleToCategory2ConfigBlacklist=false;
    $wgGroupPermissions['*']['ArticleToCategory2'] = true;
    $wgGroupPermissions['*']['ArticleToCategory2AddCat'] = false;
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit ]

User permission

[edit ]
$wgGroupPermissions['*']['ArticleToCategory2AddCat']

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

Parameter

[edit ]
$wgArticleToCategory2ConfigBlacklist

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';

Notes

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

AltStyle によって変換されたページ (->オリジナル) /