When making an inline query of a n-ary property whose first part is of type Page, if the property value contains a single quote ('), then the query will break if the magic word {{PAGENAME}} is used, but work if the page name is pasted in directly. The attached URL points to an example of this on the sandbox. The first query uses the pasted page name (and works), the second uses {{PAGENAME}} (and fails), and the third uses a non-n-ary property with {{PAGENAME}} (and works).
This appears to be a problem with escaping, somewhere in the n-ary code.
Version: unspecified
Severity: normal
URL: http://sandbox.semantic-mediawiki.org/index.php?oldid=19162