« Issue/4821 » : différence entre les versions

De Semantic MediaWiki - Sandbox
(chg)
(chg)
Ligne 12 : Ligne 12 :
== Example 2 ==
== Example 2 ==
Preventing <nowiki><nowiki></nowiki> tags by using the HTML entity for underscores (<nowiki>&#95;</nowiki>).
Preventing <nowiki><nowiki></nowiki> tags by using the HTML entity for underscores (<nowiki>&#95;</nowiki>).
; Annotation (alternative)
; Annotation
<pre>
<pre>
[[Has text::a new magic word &#95;&#95;NOCACHE&#95;&#95;]]
[[Has text::a new magic word &#95;&#95;NOCACHE&#95;&#95;]]
</pre>
</pre>


; Result (alternative)
; Result
[[Has text::a new magic word &#95;&#95;NOCACHE&#95;&#95;]]
[[Has text::a new magic word &#95;&#95;NOCACHE&#95;&#95;]]



Version du 23 août 2020 à 17:58

Refs: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4821

Example 1

Annotation
[[Has text::a new magic word __NOCACHE__]]
Result

a new magic word <nowiki>__NOCACHE__</nowiki>

Example 2

Preventing <nowiki> tags by using the HTML entity for underscores (_).

Annotation
[[Has text::a new magic word __NOCACHE__]]
Result

a new magic word __NOCACHE__

Browse

browse Issue/4821

Setting

$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;

docu for $smwgParserFeatures

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.