Last modified: 2014-05-16 13:30:39 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 T57347, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55347 - #iferror doesn't work for #property
#iferror doesn't work for #property
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 14:15 UTC by Maarten Dammers
Modified: 2014-05-16 13:30 UTC (History)
6 users (show)

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


Attachments

Description Maarten Dammers 2013-10-05 14:15:56 UTC
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).
Comment 1 Gerrit Notification Bot 2014-05-04 22:25:10 UTC
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
Comment 2 Gerrit Notification Bot 2014-05-06 10:49:49 UTC
Change 131410 merged by jenkins-bot:
Don't defer error reporting in the parser functions

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

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


Navigation
Links