Manuel:$wgTrackingCategories

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgTrackingCategories and the translation is 40% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Category: $wgTrackingCategories
The list of messages representing tracking categories which are listed at Special:TrackingCategories.
Introduit dans la version: 1.23.0
Obsolète dans la version: 1.25.0 (Gerrit change 180554; git #247ecab4)
Retiré dans la version: Encore utilisé
Valeurs autorisées: tableau de chaînes
Valeur par défaut: (voir ci-dessous)
Autres paramètres: Alphabétique | Par Fonction

Détails

$wgTrackingCategories is the list of tracking categories which are automatically added to pages. Starting with MediaWiki version 1.25, this configuration variable is deprecated and the default value changed! The default tracking categories are now hard-coded in the MediaWiki code and Extensions should now register tracking categories using the new extension registration system. They are listed on Special:TrackingCategories.

People who write extensions that add tracking categories via $parser->addTrackingCategory should add the system message corresponding to their tracking category to this array. They should also define a message with the same name but -desc appended that describes the criteria for a page to be tagged with the tracking category.

Valeur par défaut

MediaWiki 1.25 and after

Version de MediaWiki : 1.25
$wgTrackingCategories = array();

MediaWiki 1.24 and before

Version de MediaWiki : 1.24
$wgTrackingCategories = array(
	'index-category',
	'noindex-category',
	'expensive-parserfunction-category',
	'post-expand-template-argument-category',
	'post-expand-template-inclusion-category',
	'hidden-category-category',
	'broken-file-category',
	'node-count-exceeded-category',
	'expansion-depth-exceeded-category',
);

Voir aussi