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

De Semantic MediaWiki - Sandbox
(chg)
m (typo)
 
(3 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
Refs: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4821
Refs: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4821


== Example 1 ==
; Annotation
; Annotation
<pre>
<pre>
Ligne 9 : Ligne 10 :
[[Has text::a new magic word <code><nowiki>&lt;nowiki&gt;__NOCACHE__&lt;/nowiki&gt;</nowiki></code>]]
[[Has text::a new magic word <code><nowiki>&lt;nowiki&gt;__NOCACHE__&lt;/nowiki&gt;</nowiki></code>]]


; Annotation (alternative)
== Example 2 ==
Preventing <nowiki><nowiki></nowiki> tags by using the HTML entity for underscore (<code><nowiki>&#38;#95;</nowiki></code>).
; 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;]]


; Browse
== Browse ==
→ [https://sandbox.semantic-mediawiki.org/wiki/Sp%C3%A9cial:Parcourir/Issue/4821 browse {{FULLPAGENAME}}]
→ [https://sandbox.semantic-mediawiki.org/wiki/Sp%C3%A9cial:Parcourir/Issue/4821 browse {{FULLPAGENAME}}]


; Setting
== Setting ==
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;
$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;

Dernière version du 23 août 2020 à 18:00

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 underscore (&#95;).

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.