« SpecialSymbolsExample » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications Balise : Éditeur de wikicode 2017 |
Aucun résumé des modifications Balise : Éditeur de wikicode 2017 |
||
Ligne 9 : | Ligne 9 : | ||
{{SpecialSymbolsTemplate | {{SpecialSymbolsTemplate | ||
|simple=no special symbols here! | |simple=no special symbols here! | ||
|code=[jkldfajlf][[dsfa]]}{{}}{{!}}|||{{}}}{][ | |code=[jkldfajlf][[dsfa]]}}}{{}}{{!}}|||{{}}}{][ | ||
|precode=<pre>[jkldfajlf][[dsfa]]}{{}}{{!}}|||{{}}}{][</pre> | |precode=<pre>[jkldfajlf][[dsfa]]}}}{{}}{{!}}|||{{}}}{][</pre> | ||
}} | }} |
Version du 23 octobre 2018 à 17:38
This page shows a template with a keyword parameter with special symbols in its value.
The template should display this value and set the semantic media wiki property Has code.
I would like to remove the need for <pre></pre> in the template argument and have the clean value set as Has code by the template in the SMW properties.
Note too the difficulty in getting the edit with form to correctly display the current value and insert a string with special characters into the template. Note too that the | template is left in the string value, and its inability to handle the pre tags.
SIMPLE | no special symbols here! |
---|---|
CODE | [jkldfajlf]dsfa
|
}{{}}||||{{}}}{][
|precode=
[jkldfajlf][[dsfa]]}}}{{}}{{!}}|||{{}}}{][
}}