Template:HTML comment/doc: Difference between revisions

Content deleted Content added
First draft
 
Document |collapsed=
Line 8:
: <syntaxhighlight lang="wikitext" inline>{{subst:html comment|Lorem ipsum dolor sit amet}}</syntaxhighlight>
:: ↳ <syntaxhighlight lang="html" inline><!-- Lorem ipsum dolor sit amet --></syntaxhighlight>
 
By default a space will be added before and after the given text. Use {{tjp|collapsed: yes}} to remove it (useful in vertical comments). For example,
 
<syntaxhighlight lang="wikitext">{{subst:html comment|collapsed=yes|
 
Lorem ipsum dolor sit amet
 
}}</syntaxhighlight>
 
will generate
 
<syntaxhighlight lang="wikitext"><!--
Lorem ipsum dolor sit amet
--></syntaxhighlight>
 
== Notable cases ==