Misplaced Pages

Template:HTML comment/doc

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:HTML comment

This is an old revision of this page, as edited by Grufo (talk | contribs) at 14:55, 3 August 2023 (First draft). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 14:55, 3 August 2023 by Grufo (talk | contribs) (First draft)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:HTML comment.
It may contain usage information, categories and other content that is not part of the original template page.
This template should always be substituted (i.e., use {{subst:HTML comment}}).
Shortcut

Use this substitution to insert HTML comments (<!-- ... -->) – hidden to readers – into Misplaced Pages pages.

Usage

{{subst:html comment|Lorem ipsum dolor sit amet}}
<!-- Lorem ipsum dolor sit amet -->

Notable cases

Using this substitution allows the expansion of MediaWiki commands inside HTML comments, which would be preserved verbatim otherwise. Compare:

{{subst:html comment|{{subst:FULLPAGENAME}}}}
<!-- Template:HTML comment -->

and:

<!-- {{subst:FULLPAGENAME}} -->
<!-- {{subst:FULLPAGENAME}} -->

See also


Template:HTML comment/doc Add topic