Extension:ParserFunctions: verschil tussen versies
interwiki>Jrooksjr (Vandalism) |
k (1 versie geïmporteerd) |
(geen verschil)
|
Huidige versie van 25 sep 2019 om 13:46
<languages/>
[[Category:extensions bundled with MediaWiki 1.18{{#translation:}}]]
ParserFunctions Release status: stableLua-fout: callParserFunction: function "#translation" was not found.[[Category:stable extensions{{#translation:}}]] |
|
---|---|
Implementation | Lua-fout: callParserFunction: function "#translation" was not found. |
Description | <translate> Enhances parser with logical and string functions</translate> |
Author(s) | Tim Starlingoverleg |
Latest version | Lua-fout: callParserFunction: function "#translation" was not found. |
MediaWiki | 1.25+ |
Database changes | No |
License | Lua-fout: callParserFunction: function "#translation" was not found. |
Download | [[Category:Extensions in Wikimedia version control{{#translation:}}]] README |
|
|
|
|
Translate the Extension:ParserFunctions extension if it is available at translatewiki.net | |
Check usage and version matrix. | |
Issues | Open tasks · Report a bug |
[[Category:All extensions{{#translation:}}]]
<translate> 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 [[<tvar|ext-StringFunctions>Special:MyLanguage/Extension:StringFunctions</>|StringFunctions]] extension, which may be enabled or disabled (See the install instructions below).
For instructions on how to use this extension, see the [[<tvar|help>Special:MyLanguage/Help:Extension:ParserFunctions</>|ParserFunctions help page]], and the [[<tvar|ext-StringFunctions>Special:MyLanguage/Extension:StringFunctions</>|StringFunctions]] page.
Installation
</translate>
- Download and place the file(s) in a directory called
Extension:ParserFunctions
in yourextensions/
folder.
- Add the following code at the bottom of your LocalSettings.php: <syntaxhighlight lang="php">
wfLoadExtension( 'Extension:ParserFunctions' );
</syntaxhighlight><translate>
- [[<tvar|config>#Configuration</>|Configure]] as required, e.g. if you want to use the integrated string function functionality, add just after that line:</translate>
<syntaxhighlight lang="php"> $wgPFEnableStringFunctions = true; </syntaxhighlight>
- Sjabloon: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 <syntaxhighlight lang="php" inline="true">wfLoadExtension( 'Extension:ParserFunctions' );</syntaxhighlight>, you need to use:
<syntaxhighlight lang="php">
require_once "$IP/extensions/Extension:ParserFunctions/Extension:ParserFunctions.php";
</syntaxhighlight>
<translate>
Configuration
</translate>
$wgPFEnableStringFunctions
- <translate> Allows to activate the integrated string function functionality (see StringFunctions). The default value is
false
.</translate> $wgPFStringLengthLimit
- <translate> Defines the maximum length of a string that string functions are allowed to operate on. The default value is
1000
.</translate>
<translate>
See also
</translate>
This skin is being used on one or more Wikimedia projects. This probably means that the skin is stable and works well enough to be used by such high-traffic websites. Look for this skin's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the skins installed on a particular wiki can be seen on the wiki's Special:Version page. |
[[Category:Skins used on Wikimedia{{#translation:}}|Extension:ParserFunctions]]