Template:Htc/testcases

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is the template test case page for Template:Htc and its sandbox version. You may have to purge this page to update the examples.
Showing open tag (anonymous parameter)
Wiki code
{{Htc|span}}
Main version
<span>
Sandbox version


Showing open tag with attribute (anonymous parameter)
Wiki code
{{Htc|span style{{=}}"color:red"}}
Main version
<span style="color:red">
Sandbox version


Showing open tag with attribute containing a pipe character (anonymous parameter)
Wiki code
{{Htc|span title{{=}}"this{{!}}that"}}
Main version
<span title="this|that">
Sandbox version


Showing close tag (anonymous parameter)
Wiki code
{{Htc|/span}}
Main version
</span>
Sandbox version


Showing only open and close angle-brackets (no parameter)
Wiki code
{{Htc}}
Main version
<>
Sandbox version