Page MenuHomePhabricator

Provide unformatted version of {{NUMBEROFUSERS}}
Closed, ResolvedPublic

Description

Author: stanley

Description:
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


Version: 1.7.x
Severity: enhancement

Details

Reference
bz5768

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:12 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz5768.

wegge wrote:

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"

robchur wrote:

Fixed in SVN trunk, r13978. {{NUMBEROFUSERS}}, {{NUMBEROFFILES}} and
{{NUMBEROFARTICLES}} will now all accept a "raw" modifier, e.g. {{NUMBEROFUSERS|R}}.