Last modified: 2014-10-17 15:10:20 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 T69988, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67988 - Parser function #ifeq with #property gives wrong result on zhwp
Parser function #ifeq with #property gives wrong result on zhwp
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Wikidata bugs
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-14 14:19 UTC by yangfl
Modified: 2014-10-17 15:10 UTC (History)
4 users (show)

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


Attachments

Description yangfl 2014-07-14 14:19:40 UTC
Parser function #ifeq with #property as one of the strings can give wrong result on zhwp. For example, on the article OpenBSD, {{#property:P373}} gives OpenBSD, but {{#ifeq:{{#property:P373}}|OpenBSD|a|b}} gives b. There's no such problem on enwp.
Comment 1 Liangent 2014-07-28 16:26:35 UTC
{{#property: }} emits wikitext with language conversion syntax in it if the wiki uses Language Converter. I remember I brought up a topic in wikidata-tech@lists about the expected output of {{#property: }} but got no response. :/
Comment 2 Marius Hoch 2014-07-28 22:49:16 UTC
Yes, the problem over here is that we use a language variant aware output format (which only gets transformed into the actual output after parser functions like ifeq are being executed).

You can use Lua to get the raw values without variant conversion.
Comment 3 Marius Hoch 2014-10-17 15:10:20 UTC
Per above, this is not anything we can easily change... the parser function should only be used for very simply display logic. Once you want to more, please use Lua.

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


Navigation
Links