Manual:$wgSitemapNamespacesPriorities
Appearance
From mediawiki.org
Deprecated: This feature is deprecated and should no longer be used, however it is possibly still available for reasons of backwards compatibility .
| Search: $wgSitemapNamespacesPriorities | |
|---|---|
| Custom namespace priorities for sitemaps. |
|
| Introduced in version: | 1.19.0 (r95320) |
| Deprecated in version: | 1.45.0 (Gerrit change 1163495; git #08e4436f) |
| Removed in version: | Still in use |
| Allowed values: | (array) or false |
| Default value: | false |
| Other settings: Alphabetical | By function | |
Details
[edit ]This configuration parameter allows you to set custom priorities to namespaces when sitemaps are generated using the generateSitemap.php script.
This array should be a map of namespace IDs to their priority. Example:
$wgSitemapNamespacesPriorities = [ NS_USER => '0.9', NS_HELP => '0.1' ];
See also
[edit ]- $wgSitemapNamespaces - Namespaces to generate a sitemap or false for all namespaces.