https://bugzilla.wikimedia.org/show_bug.cgi?id=55347
Web browser: ---
Bug ID: 55347
Summary: #iferror doesn't work for #property
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataClient
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
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).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l