MediaWiki extension: DynamicFunctions (extended)
| DynamicFunctions (extended) Release status: stable | |
|---|---|
| Type: | Parser function |
| Description: | This module defines five functions: arg, ip, userid, rand, and skin. |
| Author: | Algorithm , Eric Hartwell |
| Version: | 1.1 (2007-04-10) |
| MediaWiki: | > 1.6.8 |
| Download: | |
Contents |
What can this extension do?
See the original DynamicFunctions on WikiMedia.
Usage
- arg, ip, rand, skin
- See the original DynamicFunctions on WikiMedia.
- #userid
- The #userid function returns the User ID address of the current user. No arguments are required. Especially useful with ParserFunctions #if:, since it's empty if the user isn't logged in.
- Example: The current user is anonymous
The current user is {{#if: {{#userid:}} | {{#userid:}} | anonymous}}
Installation
Parameters
Changes to LocalSettings.php
require_once("$IP/extensions/DynamicFunctionsEx.php");