Manual:$wgSitemapNamespaces

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎русский
Namespaces: $wgSitemapNamespaces
Array of namespaces to generate a sitemap or false for all namespaces.
Introduced in version: 1.13.0
Removed in version: still in use
Allowed values: array or false
Default value: false
Other settings: Alphabetical | By function

Details[edit]

Array of namespace IDs to generate a sitemap for when the maintenance/generateSitemap.phpManual:generateSitemap.php script is run, or false if one is to be generated for all namespaces.

Example[edit]

$wgSitemapNamespaces = array( 0, 2, 4, 12 );

Now only sitemap files for the main, user, project and help namespace will be generated and thus included into the sitemap.