Last modified: 2006-11-21 16:18:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7910 - Parserfunctions: min, max
Parserfunctions: min, max
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest, patch, patch-reviewed
Depends on:
  Show dependency treegraph
Reported: 2006-11-13 21:18 UTC by Carl Fürstenberg
Modified: 2006-11-21 16:18 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

implementation of the functions (3.79 KB, patch)
2006-11-13 21:19 UTC, Carl Fürstenberg
implementation of the functions (3.73 KB, patch)
2006-11-13 22:21 UTC, Carl Fürstenberg
implementation of the functions (3.70 KB, patch)
2006-11-13 22:57 UTC, Carl Fürstenberg
the final patch (2.25 KB, patch)
2006-11-17 13:55 UTC, Carl Fürstenberg
the patch (13.05 KB, patch)
2006-11-20 15:32 UTC, Carl Fürstenberg

Description Carl Fürstenberg 2006-11-13 21:18:25 UTC
This is a request of implementation of these functions into the ParserFunctions,
including patch implements these functions.
Comment 1 Carl Fürstenberg 2006-11-13 21:19:39 UTC
Created attachment 2693 [details]
implementation of the functions

these functions take an arbitary list of expressions and return the value
defined by the function
Comment 2 Carl Fürstenberg 2006-11-13 22:00:20 UTC
Example, this code:
Will produce:
    * 0.4
    * 345.866025404
    * 55.8423659458
    * 8 
Comment 3 Carl Fürstenberg 2006-11-13 22:21:42 UTC
Created attachment 2694 [details]
implementation of the functions

Was thinking somewhat wrong when implementing the median man mean function.
Comment 4 Carl Fürstenberg 2006-11-13 22:57:48 UTC
Created attachment 2698 [details]
implementation of the functions

minor idiotic fix.
Comment 5 Carl Fürstenberg 2006-11-14 08:50:43 UTC
the exmplaes with the correct code:
Example, this code:

Will produce
    * 0.4
    * 345.866025404
    * 51.5221687837
    * 7 
Comment 6 Carl Fürstenberg 2006-11-17 13:55:23 UTC
Created attachment 2718 [details]
the final patch

As a result of discussion, removing mean mad median, designatred for third
party patch, min and max still wanted thou indicating of this patch
Comment 7 Carl Fürstenberg 2006-11-20 15:32:51 UTC
Created attachment 2749 [details]
the patch

fixed the whitespace problem once and for all
Comment 8 Carl Fürstenberg 2006-11-21 16:18:23 UTC
fixed in r17818

Note You need to log in before you can comment on or make changes to this bug.