« Issue/4821 » : différence entre les versions
De Semantic MediaWiki - Sandbox
(chg) |
(chg) |
||
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><nowiki>__NOCACHE__</nowiki></nowiki></code>]] | [[Has text::a new magic word <code><nowiki><nowiki>__NOCACHE__</nowiki></nowiki></code>]] | ||
== Example 2 == | |||
Preventing <nowiki><nowiki></nowiki> tags by using the HTML entity for underscores (<nowiki>_</nowiki>). | |||
; Annotation (alternative) | ; Annotation (alternative) | ||
<pre> | <pre> | ||
Ligne 17 : | Ligne 20 : | ||
[[Has text::a new magic word __NOCACHE__]] | [[Has text::a new magic word __NOCACHE__]] | ||
== 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 == | |||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP; | $smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP; |
Version du 23 août 2020 à 17:57
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 (alternative)
[[Has text::a new magic word __NOCACHE__]]
- Result (alternative)
a new magic word __NOCACHE__
Browse
Setting
$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;