#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

Details

Reference
bz55347
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz55347.

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

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

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

Add Comment