<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Template%3AHTML_comment%2Fdoc</id>
	<title>Template:HTML comment/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Template%3AHTML_comment%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Template:HTML_comment/doc&amp;action=history"/>
	<updated>2026-04-23T07:46:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Template:HTML_comment/doc&amp;diff=19063699&amp;oldid=prev</id>
		<title>imported&gt;HouseBlaster: deleted at RFD</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Template:HTML_comment/doc&amp;diff=19063699&amp;oldid=prev"/>
		<updated>2025-12-16T08:25:04Z</updated>

		<summary type="html">&lt;p&gt;deleted at RFD&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Always substitute}}&lt;br /&gt;
{{Template shortcut|hcmt}}&lt;br /&gt;
{{Distinguish|text={{tl|Example HTML comment}}}}&lt;br /&gt;
&lt;br /&gt;
Use this [[Wikipedia:Substitution|substitution]] to insert HTML comments (&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; inline&amp;gt;&amp;lt;!-- ... --&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;) – hidden to readers – into Wikipedia pages.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
: &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{subst:html comment|Lorem ipsum dolor sit amet}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:: ↳ &amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; inline&amp;gt;&amp;lt;!-- Lorem ipsum dolor sit amet --&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default a space will be added before and after the given text. Use {{para|collapsed|yes}} to remove it (useful in vertical comments). For example,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{subst:html comment|collapsed=yes|&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will generate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
Lorem ipsum dolor sit amet&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
--&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In substitutable templates, use &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{safesubst:&amp;lt;noinclude /&amp;gt;HTML comment|...}}&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Notable cases ==&lt;br /&gt;
Using this substitution allows the expansion of [[:mw:Help:Magic words|MediaWiki commands]] inside HTML comments, where they would be preserved verbatim otherwise. Compare:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{subst:html comment|{{subst:FULLPAGENAME}}}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:: ↳ &amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; inline&amp;gt;&amp;lt;!-- Template:HTML comment --&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;&amp;lt;!-- {{subst:FULLPAGENAME}} --&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:: ↳ &amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; inline&amp;gt;&amp;lt;!-- {{subst:FULLPAGENAME}} --&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{Tl|Example HTML comment}}&lt;br /&gt;
* {{Tl|Comment}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
[[Category:HTML typing-aid templates]]&lt;br /&gt;
[[Category:Wikitext typing-aid templates]]&lt;br /&gt;
[[Category:Hiding templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;HouseBlaster</name></author>
	</entry>
</feed>