Go to file
thiemowmde 928a21605a Remove dead code from #titleparts implementation
It's impossible that explode() returns an empty array. This is dead
code.

Also add tests for the previously untested #titleparts function to
make sure this patch doesn't change any behavior. Including weird
usages with negative numbers.

Change-Id: Ib0d2503fdb0900bf6db3ebbc26d2ff648dbfc86d
2022-11-03 18:30:49 +01:00
.phan Upgrade to newer phan 2019-03-16 22:39:09 -07:00
i18n Localisation updates from https://translatewiki.net. 2022-10-13 08:09:31 +02:00
includes Remove dead code from #titleparts implementation 2022-11-03 18:30:49 +01:00
tests Remove dead code from #titleparts implementation 2022-11-03 18:30:49 +01: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 mediawiki/mediawiki-phan-config to 0.12.0 2022-10-10 21:05:20 +00:00
COPYING Change ParserFunctions license to GPL-2.0+ 2017-01-06 15:27:33 +00:00
extension.json Correct namespacing to match best practices 2022-03-05 15:06:59 +00:00
Gruntfile.js build: Updating dependencies 2021-01-30 07:16:41 +00:00
package-lock.json build: Updating minimatch to 3.0.8 2022-10-21 12:27:00 +00:00
package.json build: Updating grunt-banana-checker to 0.10.0 2022-10-07 03:37:19 +00:00
ParserFunctions.i18n.magic.php Remove LEFT-TO-RIGHT MARK (U+200E) from comments and messages 2022-08-10 21:23:14 +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