Template:Ht/testcases

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


Showing open tag with attribute (anonymous parameter)
Wiki code
{{Ht|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
{{Ht|span title{{=}}"this{{!}}that"}}
Main version
<span title="this|that">
Sandbox version


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


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