Last modified: 2012-11-03 09:27:25 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 T20157, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18157 - Implement a {{#trim}}, {{#ltrim}}, {{#trim}} in StringFunctions
Implement a {{#trim}}, {{#ltrim}}, {{#trim}} in StringFunctions
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-25 19:29 UTC by René Kijewski
Modified: 2012-11-03 09:27 UTC (History)
2 users (show)

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


Attachments

Description René Kijewski 2009-03-25 19:29:14 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.
Comment 1 Robin Krahl 2010-04-11 17:35:52 UTC
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 2 Chad H. 2010-04-16 08:50:21 UTC
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.

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


Navigation
Links