https://www.mediawiki.org/wiki/Strip_marker tells the awkward way the MediaWiki handles certain tags and makes life hard for developers. In older SMW versions: trying to add tags inside text properties like:
a new magic word <nowiki>__NOCACHE__</nowiki>
would lead to an error. Now out of the box the result displayed is:
a new magic word '"UNIQ--nowiki-00000001-QINU"'
The strip marker handling has been discussed in the past e.g. in #232, #3753
There seems to be some documentation at https://www.semantic-mediawiki.org/wiki/Help:$smwgDecodeTextAnnotationWithStripMarker but that seems to tell that this was never really implemented this way but instead:
https://www.semantic-mediawiki.org/wiki/Help:$smwgParserFeatures has a subelement SMW_PARSER_UNSTRIP.
I'd appreciate to get a proper example configuration for cut&paste to not have to test this with try and error. It would even be better if the default settings would support strip markers so that admins don't have to fiddle with this just to get the natural behavior which in this case would be to display:
a new magic word __NOCACHE__
[[Has text::a new magic word <nowiki>__NOCACHE__</nowiki>]]
Trivia: this happened when trying to set the description property of an extension for https://www.mediawiki.org/wiki/Extension:MagicNoCache by cut&paste from the documentation page.
Apparently this was already documented "servierfertig". Here is the working demo on sandbox.
@kghbln thx
$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;
is what i was looking for.
Most helpful comment
@kghbln thx
$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;is what i was looking for.