#iferror doesn't work for #property
Closed, ResolvedPublic

Description

I'm playing around with coordinates on the Dutch Wikipedia. If no globe is set, {{#property:P625}} throws: "Failed to render property P625: No formatter defined for data type globe-coordinate nor for value type bad." in HTML: "<p class="error">Failed to render property P625: No formatter defined for data type globe-coordinate nor for value type bad.</p>"

According to https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23iferror I should be able to do:

{{#iferror: {{#property:P625}} | error | correct }}

but this returns "correct" (and throws the ugly English red error message).


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0

bzimport added a subscriber: wikidata-bugs.
bzimport set Reference to bz55347.
Multichill created this task.Via LegacyOct 5 2013, 2:15 PM
gerritbot added a comment.Via ConduitMay 4 2014, 10:25 PM

Change 131410 had a related patch set uploaded by Hoo man:
[WIP] Don't defer error reporting in the parser functions

https://gerrit.wikimedia.org/r/131410

gerritbot added a comment.Via ConduitMay 6 2014, 10:49 AM

Change 131410 merged by jenkins-bot:
Don't defer error reporting in the parser functions

https://gerrit.wikimedia.org/r/131410

Add Comment