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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9910, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7910 - Parserfunctions: min, max
Parserfunctions: min, max
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest, patch, patch-reviewed
Depends on:
Blocks:
  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: ---


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

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:
*{{#min:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}
*{{#max:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}
*{{#mean:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}
*{{#median:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}
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:
*{{#min:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}
*{{#max:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}
*{{#mean:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}
*{{#median:1+3|2/5|3|4|5|6|8|9|44|66|123|345+sqrt(3/4)}}

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.


Navigation
Links