Page MenuHomePhabricator

Extraneous Character
Closed, InvalidPublic

Description

Author: gaarmyvet

Description:
An attempt is being made to assign user edit counts to categories.

At the abpve URL:

Expression 1: {{ #ifexpr: 10 > 9 | True | False }} works,

Expression 2: {{padleft:{{Special:Editcount/gaarmyvet}}}} seems to work; however

Expression 3: {{ #ifexpr: {{padleft:{{Special:Editcount/gaarmyvet}}}} > 2000 | More | Less }} fails and reports 'Expression error: Unrecognised punctuation character " ",' with what seems to be a space between the double quotes. Analysis with Excel using the mid and code functions reveals that the "space" is an ascii 127 (DEL).


Version: unspecified
Severity: minor
URL: http://lostpedia.wikia.com/wiki/User:Gaarmyvet/Sandbox/Sub1

Details

Reference
bz16778

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:29 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz16778.
bzimport added a subscriber: Unknown Object (MLST).

I think #ifexpr is seeing the "\x07UNIQ" placeholder.
You may work around it by having a template with {{#ifexpr: {{{1}}} > 2000 |
More | Less }} and calling it with the {{Special:Editcount/gaarmyvet}} parameter.

Related bug #22555
(in padleft: and padright: as demonstrated in a English Wikipedia template doc page)

Aklapper edited subscribers, added: Aklapper; removed: wikibugs-l-list.

https://lostpedia.fandom.com/wiki/User:Gaarmyvet/Sandbox/Sub1?oldid=498587 nowadays shows Expression error: Unrecognized punctuation character "[".; no more space seen. Closing.