Extensió:ParserFunctions

This page is a translated version of the page Extension:ParserFunctions and the translation is 85% complete.
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.
MediaWiki extensions manual
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
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.25+
Database changes No
License GNU General Public License 2.0 or later
Download
README
Help
  • $wgPFEnableStringFunctions
  • $wgPFStringLengthLimit
Quarterly downloads 398 (Ranked 11th)
Public wikis using 15,766 (Ranked 4th)
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'antiga extensió StringFunctions, que es pot activar o desactivar.

Per llegir instruccions sobre com utilitzar aquesta extensió, vegeu les pàgines d'ajuda.

Instal·lació

  • Download and move the extracted ParserFunctions folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ParserFunctions' );
    
  • Configureu com calgui. Per exemple, si voleu utilitzar la funcionalitat de la funció de cadena integrada, afegiu-la just després d'aquesta línia:
$wgPFEnableStringFunctions = true;
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuració

$wgPFEnableStringFunctions
Permet activar la funcionalitat de la funció de cadena integrada (vegeu string function ). El valor predeterminat és false.
$wgPFStringLengthLimit
Defineix la longitud màxima d'una cadena en la qual es permet operar les funcions de cadena. El valor per defecte és 1000.

Help pages

Vegeu també