Last modified: 2011-03-13 18:05:04 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 T23900, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21900 - toUpper and toLower functions for strings would be nice
toUpper and toLower functions for strings would be nice
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://dungeons.wikia.com
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-19 21:19 UTC by Morgon Kanter
Modified: 2011-03-13 18:05 UTC (History)
2 users (show)

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


Attachments
Patch that adds "toupper" and "tolower" functions (1.50 KB, patch)
2009-12-19 21:19 UTC, Morgon Kanter
Details
Corrected patch (first one had function name mismatch) (1.50 KB, patch)
2009-12-19 21:22 UTC, Morgon Kanter
Details

Description Morgon Kanter 2009-12-19 21:19:15 UTC
Created attachment 6892 [details]
Patch that adds "toupper" and "tolower" functions

It would be really great to have string functions "toupper" which changes a string to its upper-case equivalent, and "tolower" which changes a string to its lower-case equivalent. These are built-in with PHP, so it was pretty trivial to hack these in (patch attached). Might want to double-check to make sure everything is working okay, because I have no way to test for myself.
Comment 1 Morgon Kanter 2009-12-19 21:22:04 UTC
Created attachment 6894 [details]
Corrected patch (first one had function name mismatch)

Oops, the first patch had a mismatch between the function names in the array and the actual function names. This corrects that problem.
Comment 2 Conrad Irwin 2009-12-19 21:23:13 UTC
Core MediaWiki provides 

{{lc: }}
{{uc: }}

which seem to have the effects you desire.

See http://www.mediawiki.org/wiki/Help:Magic_words#Formatting

      

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


Navigation
Links