Last modified: 2014-09-23 19:50:01 UTC
The FormatNum extension ([[mw:Extension:FormatNum]]) is a parser function extension adding new number formatting capabilities. Two projects, sl.wikip and fa.wikip have requested it. This extension should be reviewed and considered for deployment.
I added the extension to https://www.mediawiki.org/wiki/Review_queue
The procedure at https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment says that, since FormatNum is a user-facing feature, it needs a design review https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment . Can Dereckson or DaSch start getting that design review? Thanks!
Why did slwiki and fawiki request it? Doesn't the core {{formatnum: }} work for them? (yes, there's a name clash, quite bad for the proposed extension) If the number format configured for their language is wrong, it should be fixed in the language files, not workarounded with an extension.
I don't know for fa., so I asked them recopying your question in this bug. For sl., it's because they want to be able to format number with comma as thousand separator. Note there could be other side reasons, as the bug 40186 description says: "Unlike English, our language uses commas as decimal mark, which is the main reason we need the extension."
> For sl., it's because they want to be able to format number with comma as > thousand separator. > > Note there could be other side reasons, as the bug 40186 description says: > "Unlike English, our language uses commas as decimal mark, which is the main > reason we need the extension." Then the change should go into the message file. Something like separatorTransformTable = array( ',' => '.', '.' => ',' ); [assuming they use . thousands mark ] Wrong bug #?
as Dereckson said for fa.wiki we want to be able to format number with comma as thousand separator as an additional option
Platonides, with this new information, could you take in charge the design review and determines the cost/benefits to allow this extension or extend the core {{formatnum}}?
it will be useful in wikis that they need local number. it is used in many templates that they works with year numbers I mentioned the details in bug 35753 In my opinion it could be extending {{formatnum}} because many wikis (Specially Asian languages) needs this option.According to maintenance it will be better to have similar wikis with n variable it could be like {{formatnum:2010|n}}=> ۲۰۱۰
Would this be something that would be a good fit for a Lua module?