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.
Description
Description
Details
Details
- Reference
- bz18157
Event Timeline
Comment Actions
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.
Comment Actions
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.