Go to file
Fomafix 2e145b0ff6 Rename language codes sr-ec and sr-el to sr-cyrl and sr-latn
sr-ec and sr-el are not conform to BCP 47. https://tools.ietf.org/html/bcp47
BCP 47 explicit mentions sr-Latn and sr-Cyrl as examples.

This change requires 6839b8599458d978b0596de57c8cb8f31db5a2f6
in MediaWiki core included in MediaWiki 1.39.

The bidirectional fallback between the old and the new language codes
ensures that the magic words supports both language codes. This can be
checked at api.php?action=query&meta=siteinfo&siprop=magicwords&format=json
Just the order of the entries is different after this change.

The rename of the JSON files
* sr-ec.json to sr-cyrl.json and
* sr-el.json to sr-latn.json
has to be done in translatewiki.net.

Bug: T117845
Depends-On: I666fbdea89ccf21aab6ca1849adf22813dec052e
Change-Id: I2746b7986cda454affbc17f467fef233ecd4bf51
2024-05-19 19:30:56 +00:00
.phan Upgrade to newer phan 2019-03-16 22:39:09 -07:00
i18n Localisation updates from https://translatewiki.net. 2024-05-10 09:29:45 +02:00
includes Replace isset() with null check in ParserFunctions 2024-03-27 23:06:57 +00:00
tests tests: Make PHPUnit data providers static 2023-05-20 13:54:24 +02:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 06:57:12 +00:00
.gitignore build: Install eslint 2019-05-07 10:14:19 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:13 -07:00
.phpcs.xml build: Updating composer dependencies 2021-05-04 08:49:27 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 15:11:06 +00:00
composer.json build: Updating composer dependencies 2024-05-06 00:18:53 +00:00
COPYING Change ParserFunctions license to GPL-2.0+ 2017-01-06 15:27:33 +00:00
extension.json build: Update MediaWiki requirement to 1.39 2024-01-12 18:16:28 -05:00
Gruntfile.js build: Updating dependencies 2021-01-30 07:16:41 +00:00
package-lock.json build: Updating grunt-banana-checker to 0.13.0 2024-05-18 21:13:29 +00:00
package.json build: Updating grunt-banana-checker to 0.13.0 2024-05-18 21:13:29 +00:00
ParserFunctions.i18n.magic.php Rename language codes sr-ec and sr-el to sr-cyrl and sr-latn 2024-05-19 19:30:56 +00:00
README Avoid confusion about single quotes in README 2022-09-17 10:09:14 +00:00

ParserFunctions v1.4.0

1. Licensing
2. How to install
3. Tests

1. Licensing
Licensed under GNU GPL 2.0 or any later version. See COPYING for more license information.

2. How to install
   a. Download this tarbell and extract the contents to $IP/extensions/ParserFunctions/
      where $IP is your root wiki install
   b. Add "wfLoadExtension( 'ParserFunctions' );" to the end of your LocalSettings
      (without the double quotes)
   c. Enjoy

3. Tests
ParserFunctions ships with two tests
- Parser tests. These get added to the main parser tests, see there for docs
- Expression tests. These are designed to test the math-related functions
  See testExpr.php