Go to file
Brad Jorsch 0fb7807e9a (bug 43451) Restore old behavior of 'mod', add 'fmod'
In trying to fix bug 35866, I32c9eca6 changed the behavior of 'mod' to
no longer cast its arguments to integers, which conventiently also
solved bug 6068. However, this also broke many existing uses that
depended on that casting.

This change reverts 'mod' to its old behavior while still solving bug
35866, and at the same time adds a new 'fmod' operator with the new
behavior to keep bug 6068 fixed as well.

Change-Id: I6114c6e769119e6ced61b3b55b6f70b03b5b1ebe
2012-12-28 16:27:23 -05:00
tests (bug 43451) Restore old behavior of 'mod', add 'fmod' 2012-12-28 16:27:23 -05:00
.gitignore ParserFunctions extension maintenance. 2012-10-03 20:58:43 +00:00
.gitreview Adding .gitreview 2012-03-23 10:31:59 -07:00
COPYING * remove MediaWiki pre-1.8 compatibility and remove SprintfDateCompat.php 2010-10-02 22:36:34 +00:00
Expr.php (bug 43451) Restore old behavior of 'mod', add 'fmod' 2012-12-28 16:27:23 -05:00
funcsParserTests.txt Add test for special parameter whitespace stripping behavior 2012-11-09 06:39:36 +00:00
ParserFunctions.i18n.magic.php Localisation updates from http://translatewiki.net. 2012-12-22 22:15:59 +00:00
ParserFunctions.i18n.php Localisation updates from http://translatewiki.net. 2012-12-27 21:25:18 +00:00
ParserFunctions.php (Bug 35866) ParserFunctions: Division by zero in Expr.php 2012-12-11 03:21:58 -08:00
ParserFunctions_body.php ParserFunctions extension maintenance. 2012-10-03 20:58:43 +00:00
README Update README a bit 2011-01-10 05:24:36 +00:00
stringFunctionTests.txt Follow-up to r67044: moved string function tests to a separate file protected by conditional, tweaked test runner to skip instead of exploding when required function hook is not found. 2010-07-09 21:11:54 +00:00

ParserFunctions v1.4.0

1. Licensing
2. How to install
3. Tests

1. Licensing
Licensed under GNU GPL. 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 'require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php");' to the 
      end of your LocalSettings (without the single 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