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 and parsers with these links: |
Below are the 14 "{{tag}}
examples" given in the template's /doc subpage. They show the renderings are unchanged from the modified code, except for the intended change proposed by the edit request. It involves the "hidden comment code", currently rendering as <!--comment--> and modified to render as <!-- comment --> which is in line with the actual rendering that occurs when hidden comments are used.
Markup | Renders as |
---|---|
{{Tag|ref}} |
|
{{Tag/sandbox|ref}} |
|
Markup | Renders as |
---|---|
{{Tag|ref|content=}} |
|
{{Tag/sandbox|ref|content=}} |
|
Markup | Renders as |
---|---|
{{Tag|ref|content=hello}} |
|
{{Tag/sandbox|ref|content=hello}} |
|
Markup | Renders as |
---|---|
{{Tag|span|content=foo}} |
|
{{Tag/sandbox|span|content=foo}} |
|
Markup | Renders as |
---|---|
{{Tag|span|open}} |
|
{{Tag/sandbox|span|open}} |
|
Markup | Renders as |
---|---|
{{Tag|span|open|content=hello}} |
|
{{Tag/sandbox|span|open|content=hello}} |
|
Markup | Renders as |
---|---|
{{Tag|span|close|content=hello}} |
|
{{Tag/sandbox|span|close|content=hello}} |
|
Markup | Renders as |
---|---|
{{Tag|span|pair|content=hello}} |
|
{{Tag/sandbox|span|pair|content=hello}} |
|
Markup | Renders as |
---|---|
{{Tag|ref|open|params=group="note"}} |
|
{{Tag/sandbox|ref|open|params=group="note"}} |
|
Markup | Renders as |
---|---|
{{Tag|references|single}} |
|
{{Tag/sandbox|references|single}} |
|
Markup | Renders as |
---|---|
{{Tag|br|single}} |
|
{{Tag/sandbox|br|single}} |
|
Markup | Renders as |
---|---|
{{Tag|!--|content=comment}} |
|
{{Tag/sandbox|!--|content=comment}} |
|
Markup | Renders as |
---|---|
{{Tag|math|params=chem}} |
|
{{Tag/sandbox|math|params=chem}} |
|
Markup | Renders as |
---|---|
{{Tag|a|params=href="<nowiki>https://en.wikipedia.org/</nowiki>"|content=English Wikipedia}} |
|
{{Tag/sandbox|a|params=href="<nowiki>https://en.wikipedia.org/</nowiki>"|content=English Wikipedia}} |
|
Testing |link=
edit
Valid example:
Markup | Renders as |
---|---|
{{Tag|del|link=y}} |
|
{{Tag/sandbox|del|link=y}} |
|
Invalid example, e.g. of arbitrary XML (it will just go to the HTML element page with an invalid #foo
anchor):
Markup | Renders as |
---|---|
{{Tag|foo|link=true}} |
|
{{Tag/sandbox|foo|link=true}} |
|