Extension:UrlGetParameters

Introduction
This extension enables you to access the url get parameters of the page. Nothing fancy, but it may be useful for dynamic pages that, depending on the link to the page, should render differently.

Installation

 * 1) Copy the code from below into a file called UrlGetParameters.php.
 * 2) Drop this script in $IP/extensions/UrlGetParameters
 * Note: $IP is your MediaWiki install dir.
 * 1) Enable the extension by adding this line to your LocalSettings.php: require_once('extensions/UrlGetParameters/UrlGetParameters.php');

Usage
To include the value of a url get parameter in your page you might do this: Where parameter-name is the name of the parameter whose value you want. If the parameter is not found, the extension will result in nothing. Alternativly you may also specify a default value as follows: When the parameter parameter-name is not available, then the value default-value is returned.

Note: Most likely your wiki installation will cache pages. As a result the parameters that will show in the page may not be the ones in the url. To overcome this 'limitation' you should disable caching for the pages you want to use the extension on. This can be done by installing another extension such as Winter which has a magic word nocache. So the example above would look like this:

The example above will show the provided parameters regardless of caching on the system.

Good luck!