Extension:ParserFunctions
Jump to navigation
Jump to search
This extension comes with MediaWiki 1.18 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
ParserFunctions Release status: stable |
|
---|---|
Implementation | Parser function |
Description | Enhances parser with logical and string functions |
Author(s) | Tim Starlingtalk |
Latest version | Continuous updates |
MediaWiki | 1.25+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | README |
|
|
Translate the ParserFunctions extension if it is available at translatewiki.net | |
Check usage and version matrix. | |
Issues | Open tasks · Report a bug |
The ParserFunctions extension enhances the wikitext parser with helpful functions, mostly related to logic and string-handling. Since MediaWiki 1.15, ParserFunctions has incorporated most (but not all) of the functions from the StringFunctions extension, which may be enabled or disabled (See the install instructions below).
For instructions on how to use this extension, see the ParserFunctions help page, and the StringFunctions page.
Installation[edit]
- Download and place the file(s) in a directory called
ParserFunctions
in yourextensions/
folder.
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'ParserFunctions' );
- Configure as required, e.g. if you want to use the integrated string function functionality, add just after that line:
$wgPFEnableStringFunctions = true;
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
To users running MediaWiki 1.24 or earlier:
The instructions above describe the new way of installing this extension using wfLoadExtension()
. If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'ParserFunctions' );
, you need to use:
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
Configuration[edit]
$wgPFEnableStringFunctions
- Allows to activate the integrated string function functionality (see StringFunctions). The default value is
false
. $wgPFStringLengthLimit
- Defines the maximum length of a string that string functions are allowed to operate on. The default value is
1000
.
See also[edit]
![]() | This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
Categories:
- Extensions bundled with MediaWiki 1.18
- GPL licensed extensions
- Stable extensions
- Extensions without an image
- Parser function extensions
- Extensions without a compatibility policy
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- ScribuntoExternalLibraries extensions
- All extensions
- Extensions used on Wikimedia