Page MenuHomePhabricator

toUpper and toLower functions for strings would be nice
Closed, DeclinedPublic

Description

Author: morgon.kanter

Description:
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.


Version: unspecified
Severity: enhancement
URL: http://dungeons.wikia.com

attachment casefunctions.patch ignored as obsolete

Details

Reference
bz21900

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:56 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz21900.
bzimport added a subscriber: Unknown Object (MLST).

morgon.kanter wrote:

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.

Attached:

conrad.irwin wrote:

Core MediaWiki provides

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

which seem to have the effects you desire.

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