Extensió:ParserFunctions
ParserFunctions Release status: stable |
|
---|---|
Implementation | Parser function |
Description | Afegeix a l'analitzador funcions lògiques i de cadenes. |
Author(s) | Tim Starlingdiscussió |
Latest version | Continuous updates |
MediaWiki | 1.25+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | README |
|
|
Translate the ParserFunctions extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
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 de les funcions (però no totes) de l'extensió StringFunctions, que pot ser activada o desactivada (consulteu les instruccions d'instal·lació més avall).
Per llegir instruccions sobre com utilitzar aquesta extensió, vegeu la pàgina d'ajuda de ParserFunctions i la pàgina StringFunctions.
Instal·lació
- Download and place the file(s) in a directory called
ParserFunctions
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'ParserFunctions' );
- Configureu com calgui. Per exemple, si voleu utilitzar les funcions de cadenes incorporades, afegiu just després d'aquella línia
$wgPFEnableStringFunctions = true;
- 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 wfLoadExtension( 'ParserFunctions' );
, you need to use:
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
Configuració
$wgPFEnableStringFunctions
- Permet activar les funcions de cadenes incorporades (vegeu StringFunctions). El valor predeterminat és
false
. The default value isfalse
. $wgPFStringLengthLimit
- Defineix la longitud màxima de les cadenes que les funcions de cadenes tenen permís de manipular. El valor predeterminat és
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. |