Page MenuHomePhabricator

Property values cannot handle <nowiki>, <math>, <!-- -->, etc.
Closed, DeclinedPublic

Description

When using <pre>, <source>, and <nowiki> tags, SMW won't record values. This doesn't work when using [[<property>::<value>]] syntax, or {{#set:<property>=<value>}} syntax.

See:

http://sandbox.semantic-mediawiki.org/index.php?title=Test&oldid=19249

For an example.


Version: master
Severity: enhancement

Details

Reference
bz22842

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:06 PM
bzimport set Reference to bz22842.

In MediaWiki, the processing of things like <nowiki> (but also HTML comments <!-- ... -->) always takes precedence over any other markup. This is a basic part of the design of MediaWiki's wiki text syntax and it cannot be changed by an extension (such as SMW).

So SMW cannot be modified to directly use the plain text input that users have given in contexts like <nowiki>. It might be possible for an extension to restore the original shape of such inputs, or it might be possible to obtain at least the final (page output) shape (the two can be quite different: consider <math>).

In any case, quite some work would be needed to effectively undo/modify the processing order of wiki text in MediaWiki. The practical utility of doing this does not seem to justify this effort now, but we will carefully consider any patches that will be contributed to address this problem.

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.