From Wikipedia, the free encyclopedia
parameter |content=
{{Tag|ref|content=hello}}
Side by side comparison| {{Tag}} | {{Tag/sandbox}} |
|---|
<ref>hello</ref> |
<ref content="hello"/> |
|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="note"">open</ref> |
|2=single
{{Tag|references|single}}
hidden HTML comment test with parameter |content=
{{Tag|!--|content=comment}}
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="'"`UNIQ--nowiki-0000007E-QINU`"'""/> |
Valid example:
Invalid example, e.g. of arbitrary XML (it will just go to the HTML element page with an invalid #foo anchor):
parameter |style=plain
{{Tag|span|style=plain|content=hello}}
Side by side comparison| {{Tag}} | {{Tag/sandbox}} |
|---|
<span>hello</span> |
<span style="plain" content="hello"/> |