Template:HTML comment/doc: Difference between revisions

Content deleted Content added
mNo edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1:
{{Documentation subpage}}
{{Always substitute}}
{{Template shortcut|hcmt|murmur}}
{{Distinguish|text={{tl|Example HTML comment}}}}
 
Use this [[Wikipedia:Substitution|substitution]] to insert HTML comments (<syntaxhighlight lang="html" inline><!-- ... --></syntaxhighlight>) – hidden to readers – into Wikipedia pages.
 
==Vikipedia Usage web==
: <syntaxhighlight lang="wikitext" inline>{{subst:html comment|Lorem ipsum dolor sit amet}}</syntaxhighlight>
:: ↳ <syntaxhighlight lang="html" inline><!-- Lorem ipsum dolor sit amet --></syntaxhighlight>
Line 26 ⟶ 27:
--></syntaxhighlight>
 
In substitutable templates, use <syntaxhighlight lang="wikitext" inline>{{safesubst:<noinclude />HTML comment|...}}</syntaxhighlight>.
 
== Notable cases ==
Line 38 ⟶ 41:
:: ↳ <syntaxhighlight lang="html" inline><!-- {{subst:FULLPAGENAME}} --></syntaxhighlight>
 
== See alsocategories ==
* {{Tl|Example HTML comment}}
* {{Tl|Comment}}
Line 46 ⟶ 49:
[[Category:HTML typing-aid templates]]
[[Category:Wikitext typing-aid templates]]
[[Category:Hiding templates]]
}}</includeonly>