Page MenuHomePhabricator

Substring functionality
Closed, DuplicatePublic

Description

Author: webmaster

Description:
I think it would be great to have the Parser extended to allow for 'substring' functions.

Something like:

{{#substring: abcdefg | 0 | 0}} would produce: a
{{#substring: abcdefg | 1 | 1}} would produce: b
{{#substring: abcdefg | 0 | 1}} would produce: ab
{{#substring: abcdefg | 2 | 4}} would produce: bcd

or to that general effect.

I don't think any functionality like this currently exists, but please correct me if I am wrong. :)

Cheers!


Version: unspecified
Severity: enhancement
URL: http://meta.wikimedia.org/wiki/ParserFunctions

Details

Reference
bz9979

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:39 PM
bzimport set Reference to bz9979.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 6455 ***