Last modified: 2013-11-19 10:44:37 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 T59230, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57230 - Provide a module to format sizes
Provide a module to format sizes
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-19 08:53 UTC by Michael M.
Modified: 2013-11-19 10:44 UTC (History)
3 users (show)

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


Attachments

Description Michael M. 2013-11-19 08:53:35 UTC
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.
Comment 1 Bartosz Dziewoński 2013-11-19 10:44:37 UTC
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").

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


Navigation
Links