Page MenuHomePhabricator

Input "Alexander" Output "Alex, er"
Closed, InvalidPublic

Description

Author: alexander.doell

Description:
Screenshot

Can the problem be viewed online in a public wiki? (If yes, provide its URL.)
NO.

SEMANTICFORMS = 1.8.5

Which versions of SMW was used?
SEMMEDIAWIKI = 1.4.3

Which version of MediaWiki was used?
MEDIAWIKI = 1.15.0

Which server setup was used (PHP, MySQL, OS)?
Ubuntu 9.10, LAMP-Server (PHP=5.2.10, Apache=2.2.12, MySQL=5.1.37)

Detailed description: If I fill a form with "Alexander" or "Osiander" the system outputs the suffix ", er". Everything else works fine.


Version: unspecified
Severity: enhancement
OS: Linux
Platform: PC

Attached:

formerror.png (900×1 px, 210 KB)

Details

Reference
bz21443

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:51 PM
bzimport set Reference to bz21443.

Are you using an #arraymap or #arraymaptemplate call on that field in the template? If so, what's the call?

alexander.doell wrote:

Yes, you are right. The call is

{{#arraymap:{{{author}}}|and|x|[[Autor::x]]}}

The "and" is apparently replaced with a comma followed by a space. I thought the "and" would work like a seperator like: "Andreas Osiander and Alexander Doell"

Ah - to replace commas with "and", you need something like:

{{#arraymap:{{{author}}}|,|x|[[Autor::x]]|<nowiki> and </nowiki>}}

Closing the bug now.

alexander.doell wrote:

Thank you very much!!