Manual:$wgTrackingCategories/da
File:OOjs UI icon alert-destructive.svg | <translate>
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version <tvar name=ver>1.25.0</tvar>.</translate> |
<translate> Category</translate>: $wgTrackingCategories | |
---|---|
The list of messages representing tracking categories which are listed at Special:TrackingCategories. |
|
<translate> Introduced in version:</translate> | 1.23.0 (Gerrit change 112323; git #610236b4) |
<translate> Deprecated in version:</translate> | 1.25.0 (Gerrit change 180554; git #247ecab4) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (array of strings) |
<translate> Default value:</translate> | (see below) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
$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.
Standard værdi
MediaWiki-version: | <translate> ≥</translate> 1.25 |
$wgTrackingCategories = [];
MediaWiki-version: |
$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',
);
MediaWiki-version: |
$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',
);
Se også
- Help:Tracking categories
- For examples of how to add tracking categories, see the GeoData or Score extensions
- MediaWiki configuration settings/da
- MediaWiki configuration settings introduced in version 1.23.0/da
- MediaWiki configuration settings deprecated in version 1.25.0/da
- MediaWiki configuration settings still in use/da
- Pages with broken file links
- MediaWiki deprecated or obsolete features/da
- Category variables/da