Template:Tag/testcases
This is the template test cases page for the sandbox of Template:Tag. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Testing sandbox version
[edit]Example
{{tag/sandbox}}
<tag>...</tag>
Example
{{tag/sandbox|h2|pair}}
<h2>...</h2>
Example
{{tag/sandbox|h2|pair|content=example}}
<h2>example</h2>
Example
{{tag/sandbox|!--|pair}}
<!--...-->
Example
{{tag/sandbox|!--|close}}
-->
Example
{{tag/sandbox|!--|open}}
<!--
Example
{{tag/sandbox|!--|empty}}
<!-- -->
Example
{{tag/sandbox|h2|open}}
<h2>
Example
{{tag/sandbox|h2|open|content=example}}
<h2>example
Example
{{tag/sandbox|h2|empty}}
<h2 />
Example
{{tag/sandbox|h2|empty|content=example}}
<h2 />
Example
{{tag/sandbox|h2|close}}
</h2>
Example
{{tag/sandbox|h2|close|content=example}}
example</h2>
Example
{{tag/sandbox|h2|pair|wrap=yes|style=color:darkcyan;background:linen;|attribs=style='text-align:center;'|content=Example}}
<h2 style='text-align:center;'>Example</h2>
Example
{{tag/sandbox|ref|o|params=group="groupname"}}
<ref group="groupname">
Example
{{tag/sandbox|dl|content={{tag/sandbox|dd}}}}
<dl>
<dd>...</dd>
</dl>
Example
{{tag/sandbox|dl|content=<dd>...</dd>}}
<dl>... </dl>
Example
{{tag/sandbox|dl|content=<dd>...</dd>}}
<dl><dd>...</dd></dl>
Testing main template
[edit]Example
{{tag}}
<tag>...</tag>
Example
{{tag|h2|pair}}
<h2>...</h2>
Example
{{tag|h2|pair|content=example}}
<h2>example</h2>
Example
{{tag|!--|pair}}
<!--...-->
Example
{{tag|!--|close}}
-->
Example
{{tag|!--|open}}
<!--
Example
{{tag|!--|empty}}
<!-- -->
Example
{{tag|h2|open}}
<h2>
Example
{{tag|h2|open|content=example}}
<h2>example
Example
{{tag|h2|empty}}
<h2 />
Example
{{tag|h2|empty|content=example}}
<h2 />
Example
{{tag|h2|close}}
</h2>
Example
{{tag|h2|close|content=example}}
example</h2>
Example
{{tag|h2|pair|wrap=yes|style=color:darkcyan;background:linen;|attribs=style='text-align:center;'|content=Example}}
<h2 style='text-align:center;'>Example</h2>
Example
{{tag|ref|o|params=group="groupname"}}
<ref group="groupname">
Example
{{tag|dl|content={{tag|dd}}}}
<dl>
<dd>...</dd>
</dl>
Example
{{tag|dl|content=<dd>...</dd>}}
<dl>... </dl>
Example
{{tag|dl|content=<dd>...</dd>}}
<dl><dd>...</dd></dl>