Last modified: 2009-08-02 12:08:48 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 T15475, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13475 - HTML entities to disable markup in a string property display as link in factbox
HTML entities to disable markup in a string property display as link in factbox
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Markus Krötzsch
http://ontoworld.org/wiki/SMW_unit_te...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-21 22:32 UTC by S Page
Modified: 2009-08-02 12:08 UTC (History)
0 users

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


Attachments

Description S Page 2008-03-21 22:32:44 UTC
I tried to disable parsing markup in a string property using [ and ] for [ and ].  (Caution, this bug may not print properly.)

  [[String test::Entities hide brackets here [[Test relation::Sandbox3]], what happens?]]

This displays square brackets around the nested annotation inline and in inline queries (good!)

But in the factbox the nested annotation appears as a page link to the bogus page Test_relation::Sandbox3.


See bug 13474 for problems using <nowiki> tags to disable parsing.

I'm rating this minor because it seems convoluted.  I think users just want one reliable way to disable parsing.
Comment 1 Markus Krötzsch 2009-08-02 12:08:48 UTC
The behavior has changed in recent versions of SMW. All brackets in property values are now disallowed (not just double brackets). Also, having multiple occurrences of "::" is considered as an annotation with multiple properties, similar to 
 
 [[property1::property2::value]].

However, the following works now:

  [[String test::Entities hide brackets here &#91;&#91;Test&#93;&#93;, what happens?]]

To use "::" in values, one also needs to do some escaping:

  [[String test::Entities hide brackets here &#91;&#91;Test relation&#58;&#58;Sandbox3&#93;&#93;, what happens?]]

Most interfaces will properly display the text by expanding entities. Search interfaces expect the entity encoding to be used when searching such values. The RDF export replaces entities with the encoded Unicode symbols. Another way of setting problematic annotation values is to use the #set parser function of SMW: since it uses a template-like input syntax, it is not sensitive to certain special characters.


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


Navigation
Links