Extension:DynamicWikiSitemap

What can this extension do?
DinamicWikiSitemap is a separate sitemap page. A sitemap will update itself automatically, which is useful if you update your website on a regular basis.

DinamicWikiSitemap don't creates any special pages.

The XML file has the following properties:
 * it is sorted by decreasing article popularity (ie. highest number of hits). However, you can configure it.
 * it contains articles only : no redirection pages, nor any other special/external page. However, you can configure it.

In order to produce more relevant Sitemaps, DinamicWikiSitemap Extension can also estimate the revision frequency of your pages and associate them a priority according various schemes

Download instructions
Please cut and paste the code found below and place it in  and.

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
Copying sitemap.php and sitemap.xsl files to the root directory is enough to install, but you can use URL Rewriting to make it URL more clean and simple.

First, create a .htaccess file, located at the root directory, or modify the .htaccess file you may already have :

This way, sitemap.php will allow us to automatically generate the content of the XML file (the real Sitemap). Each time search engine will try to open sitemap.xml, sitemap.php will be executed and will make an update of the XML file.

Configuration parameters
There are various options for extension, you can put them into your LocalSettings.php file (before the "require once") line. However, extension should work even out-of box.

Setting priority
You can use following priority schemes:
 * constant: all priorities is 0.5 (configuration constant DWS_PRIORITY_CONSTANT);
 * linear: (configuration constant DWS_PRIORITY_LINEAR);
 * quadratic: (configuration constant DWS_PRIORITY_QUADRATIC);
 * cubic: (configuration constant DWS_PRIORITY_CUBIC);
 * exponential: (configuration constant DWS_PRIORITY_EXPONENTIAL);
 * smooth: (configuration constant DWS_PRIORITY_SMOOTH);
 * random: (configuration constant DWS_PRIORITY_RANDOM);
 * reverse: (configuration constant DWS_PRIORITY_REVERSE).

See various schemes for details.

Default is DWS_PRIORITY_CONSTANT</tt>

Setting cange frequencies
Default is false.

Setting sitemap limit
Default is 1000.

Setting sorting criterion
You can use following sorting schemes:
 * popularity:sort descending by popularity (configuration constant DWS_SORTING_POP</tt>)
 * last revision:sort descending by last revision (configuration constant DWS_SORTING_REV</tt>)

Default is DWS_SORTING_POP</tt>.

sitemap.xsl
Thanks for viewing ^_^ </xsl:template> </xsl:stylesheet>