Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:ParserFunctions

From mediawiki.org
Translate this page
Languages:
This extensioncomes with MediaWiki 1.18 and later, so you do not need to download it. The remaining configuration instructions must still be followed.
MediaWiki extensions manual
ParserFunctions
Release status: stable
ImplementationParser function
DescriptionEnhances the parser with logical and string functions
Author(s)Tim Starlingtalk
Latest versionContinuous updates
Compatibility policySnapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki1.25+
Database changesNo
LicenseGNU General Public License 2.0 or later
Download
README
Help
  • $wgPFEnableStringFunctions
  • $wgPFStringLengthLimit
Translate the ParserFunctions extension if it is available at translatewiki.net
IssuesOpen tasks ·Report a bug

TheParserFunctions 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 thehelp pages.

Installation

[edit]
  • Download and move the extractedParserFunctions folder to yourextensions/ directory.
    Developers and code contributors should install the extensionfrom Git instead, using:
    cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
  • Add the following code at the bottom of yourLocalSettings.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;
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit]
$wgPFEnableStringFunctions
Allows to activate the integrated string function functionality (seestring functions). The default value isfalse.
$wgPFStringLengthLimit
Defines the maximum length of a string that string functions can operate on. The default value is1000.

Help pages

[edit]

See also

[edit]
This extension is being used on one or moreWikimedia 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'sCommonSettings.php andInitialiseSettings.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'sSpecial:Version page.
This extension is included in the following wiki farms/hosts and/or packages:This is not an authoritative list.Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.Always check with your wiki farms/hosts or bundle to confirm.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:ParserFunctions&oldid=7734654"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp