User:Ans/Template:Wikitext preview/doc
Appearance
| This is a documentation subpage for User:Ans/Template:Wikitext preview. It may contain usage information, categories and other content that is not part of the original user template page. |
Usage
[edit]Examples
[edit]{{User:Ans/Template:Wikitext preview|<nowiki>{{2x|a}}</nowiki>}}⟹{{2x|a}}→ aa{{User:Ans/Template:Wikitext preview|<nowiki>{{2x|a}}</nowiki>|<nowiki>{{{3}}} ← </nowiki>{{User:Ans/Template:Wikitext preview/syntaxhighlight}}}}⟹ aa ←{{2x|a}}
This template decode both < and &, while Template:Demo inline decode < but not decode &, so there's no way to demo the wikitext < in Template:Demo inline,
{{User:Ans/Template:Wikitext preview|<nowiki>"&amp;lt; &lt; < <" </nowiki>}}⟹"&lt; < < <"→ "< < < <"{{Demo inline|<nowiki>"&amp;lt; &lt; < <" </nowiki>}}⟹"&amp;lt; &lt; < <"→ "&lt; < < <"