Extension:ParserFunctions
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.
Category:Extensions bundled with MediaWiki 1.18
Category:Extensions without an imageCategory:GPL licensed extensions![]() Release status: stableCategory:Stable extensions |
|
---|---|
Implementation | Parser functionCategory:Parser function extensions |
Description | Enhances the parser with logical and string functions |
Author(s) | Tim Starlingtalk |
Latest version | Continuous updates |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy |
MediaWiki | 1.25+Category:Extensions with manual MediaWiki version |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control README |
Help | |
|
|
Quarterly downloads | 269 (Ranked 10th) |
Public wikis using | 15,766 (Ranked 4th) |
Translate the ParserFunctions extension if it is available at translatewiki.net | |
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) functions from the former StringFunctions extension, which may be enabled or disabled.
For instructions on how to use this extension, see the help pages.
Installation
- Download and move the extracted
ParserFunctions
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions - Add the following code at the bottom of your LocalSettings.php file:
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.
Configuration
$wgPFEnableStringFunctions
- Allows to activate the integrated string function functionality (see string functions ). The default value is
false
. $wgPFStringLengthLimit
- Defines the maximum length of a string that string functions can operate on. The default value is
1000
.
Help pages
See also
![]() | 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. |
![]() | This extension is included in the following wiki farms/hosts and/or packages:
|
Category:All extensions
Category:Extensions available as Debian packages
Category:Extensions bundled with MediaWiki 1.18
Category:Extensions in Wikimedia version control
Category:Extensions included in BlueSpice
Category:Extensions included in Canasta
Category:Extensions included in Fandom
Category:Extensions included in Miraheze
Category:Extensions included in MyWikis
Category:Extensions included in ProWiki
Category:Extensions included in ShoutWiki
Category:Extensions included in Telepedia
Category:Extensions included in WikiForge
Category:Extensions included in semantic::core
Category:Extensions included in wiki.gg
Category:Extensions used on Wikimedia
Category:Extensions with manual MediaWiki version
Category:Extensions with release branches compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:ParserFirstCallInit extensions
Category:ParserTestGlobals extensions
Category:Parser function extensions
Category:ScribuntoExternalLibraries extensions
Category:Stable extensions