Extensió:ParserFunctions
From MediaWiki.org
This page is a translated version of the page Extension:ParserFunctions and the translation is 38% complete.
Nota: This extension is bundled with MediaWiki 1.18 and above. Thus you do not have do download and extract the extension as described. 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 | 1.6.0 (2014-03-28) | ||
MediaWiki | 1.19+ | ||
Database changes | No | ||
License | GNU General Public License 2.0 | ||
Download |
README |
||
|
|||
|
|||
Translate the ParserFunctions/ca extension if it is available at translatewiki.net |
|||
Check usage and version matrix; code metrics | |||
Bugs: list open list all report |
L'extensió ParserFunctions millora l'analitzador wikitext amb funcions útils, la majoria relacionades amb la lògica i la manipulació de cadenes. Des de MediaWiki 1.15, ParserFunctions ha incorporat la majoria (però no totes) les funcions de l'extensió StringFunctions, que pot ser activada o desactivada (consulteu les instruccions d'instal·lació d'ara endavant).
For instructions on how to use this extension, see the ParserFunctions help page, and the StringFunctions page.
Instal·lació
- Download and extract the file(s) in a directory called
ParserFunctions/ca
in yourextensions/
folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository using:
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/ParserFunctions.git
- Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/ParserFunctions/ca/ParserFunctions/ca.php";
- 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.
Configuració
$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
.
Vegeu també
![]() |
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. |