Last modified: 2012-11-03 09:27:25 UTC
Sometimes it would be great if there would be a {{trim}} (core) function, since the unnamed parameters are not trimmed by default. I'd propose {{trim}}, {{ltrim}} and {{rtrim}} to be included in the core functions. They should have an optional second parameter like their PHP equivalents.
It would be nice to add this parser function to the [http://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions-Extension]. I’ll try to do this.
Moving this to Extensions. This won't go in core, but StringFunctions--or ParserFunctions, once it's all finally merged and the former is obsolete--should probably implement this.