Page MenuHomePhabricator

Provide a module to format sizes
Open, LowPublicFeature

Description

mediawiki.inspect.js has a function humanSize, mediawiki.special.upload.js a function prettySize, UW probably has such a function, and there will be several other implementations of it, including user scripts and gadgets. Instead of re-inventing the wheel every time there should be a module for this, or a function in an already existing module.


Version: 1.23.0
Severity: enhancement

Details

Reference
bz57230

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:22 AM
bzimport set Reference to bz57230.
bzimport added a subscriber: Unknown Object (MLST).

We have mediawiki.language module (and mediawiki.language.numbers), this could probably be implemented in one of those (or in another one in mediawiki.language "namespace").

matmarex set Security to None.
matmarex removed a subscriber: Unknown Object (MLST).
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: TrevorParscal.