Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Tag/testcases

From Wikipedia, the free encyclopedia
one parameter
{{Tag|ref}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<ref>...</ref> <ref/>
parameter |content=
{{Tag|ref|content=hello}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<ref>hello</ref> <ref content="hello"/>
parameter |content=
{{Tag|span|content=foo}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<span>foo</span> <span content="foo"/>
|2=open
{{Tag|span|open}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<span> <span>open</span>
|2=open with parameter |content=
{{Tag|span|open|content=hello}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<span>hello <span content="hello">open</span>
|2=close with parameter |content=
{{Tag|span|close|content=hello}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
hello</span> <span content="hello">close</span>
|2=pair with parameter |content=
{{Tag|span|pair|content=hello}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<span>hello</span> <span content="hello">pair</span>
|2=open with parameter |params=
{{Tag|ref|open|params=group="note"}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<ref group="note"> <ref params="group=&quot;note&quot;">open</ref>
|2=single
{{Tag|references|single}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<references /> <references>single</references>
|2=single
{{Tag|br|single}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<br /> <br>single</br>
hidden HTML comment test with parameter |content=
{{Tag|!--|content=comment}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<!--comment--> <!-->
parameter |params=
{{Tag|math|params=chem}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<math chem>...</math> <math params="chem"/>
parameter |params= and parameter |content=
{{Tag|a|params=href="https://en.wikipedia.org/"|content=English Wikipedia}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<a href="https://en.wikipedia.org/">English Wikipedia</a> <a content="English Wikipedia" params="href=&quot;'&quot;`UNIQ--nowiki-0000007E-QINU`&quot;'&quot;"/>
hidden HTML comment test
{{Tag|!--}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<!--...--> <!-->

Parameter "link"

[edit]

Valid example:

|link=y
{{Tag|del|link=y}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<del>...</del> <del link="y"/>

Invalid example, e.g. of arbitrary XML (it will just go to the HTML element page with an invalid #foo anchor):

|link=true
{{Tag|foo|link=true}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<foo>...</foo> <foo link="true"/>

Plain style

[edit]
parameter |style=plain
{{Tag|span|style=plain|content=hello}}
Side by side comparison
{{Tag}}{{Tag/sandbox}}
<span>hello</span> <span style="plain" content="hello"/>