Page MenuHomePhabricator

A {{strlen}} (core) function
Closed, DeclinedPublic

Description

Author: rene.kijewski

Description:
Often it would be very usefull, if there would be a {{strlen}} function. Some Wikipedias (e.g. en and de) alrealy abuse padleft (since it uses mb_strlen) and switch therefore.


Version: 1.15.x
Severity: enhancement

Details

Reference
bz18158

Event Timeline

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

charlie wrote:

This has been fixed by merging StringFunctions into ParserFunctions.
Then length of a string can be determined with the {{#len:string}} parser function.

rene.kijewski wrote:

May I re-open this feature request?
The "solution" is cleary none, as there is not the slightest possiblitity, that the (bloated) StringFunctions will ever be enabled on the WikiMedia projects.
I'd suggest to have at least an option to enable the "lighter" functions.

Given the resistance toward an extension, I don't think there's any chance of this being added to core soon.

Marking WONTFIX. This won't be going in to core. It's in StringFunctions/ParserFunctions. Cleanup to that to make it suitable for WMF is a different bug, not this one.