Extension:ParserFunctions: verschil tussen versies

Uit HisGIS
Naar navigatie springen Naar zoeken springen
interwiki>Jrooksjr
(Vandalism)
 
k (1 versie geïmporteerd)
 
(geen verschil)

Huidige versie van 25 sep 2019 om 13:46

<languages/>

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{{#translation:}}]]

MediaWiki extensions manual
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

  • $wgPFStringLengthLimit
  • $wgPFEnableStringFunctions
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 your extensions/ 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>

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>

[[Category:Skins used on Wikimedia{{#translation:}}|Extension:ParserFunctions]]