Last modified: 2006-05-02 23:19:46 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 T7768, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5768 - Provide unformatted version of {{NUMBEROFUSERS}}
Provide unformatted version of {{NUMBEROFUSERS}}
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Rob Church
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-30 11:06 UTC by Borgx
Modified: 2006-05-02 23:19 UTC (History)
2 users (show)

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


Attachments

Description Borgx 2006-04-30 11:06:29 UTC
Need unformatted version of {{NUMBEROFUSERS}} in order to provide welcome
message "You are user # to Wikipedia" using ParserFunctions
{{#expr:{{NUMBEROFUSERS}}+1}}

In Wikipedia with comma as thousand delimiter will results:
Expression error: unrecognised punctuation character ","

In Wikipedia with period as thousand delimiter (ex:id.wikipedia), the result is
wrong
ex: {{NUMBEROFUSERS}} = 10.000
{{expr:{{NUMBEROFUSERS}}+1}} = 11.000
Comment 1 Anders Wegge Jakobsen 2006-04-30 15:06:26 UTC
Excuse me my French, but that would mean that the first user on a wiki would be
greeted with "You are user 2 to Wikipedia"

Comment 2 Rob Church 2006-04-30 20:11:18 UTC
Fixed in SVN trunk, r13978. {{NUMBEROFUSERS}}, {{NUMBEROFFILES}} and
{{NUMBEROFARTICLES}} will now all accept a "raw" modifier, e.g. {{NUMBEROFUSERS|R}}.

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


Navigation
Links