This is the template test cases page for the sandbox of Template:Demo. 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: |
{{Demo}}
==Some templates==
{{tl|template}}, {{=}}, {{!}}
{{payoff matrix
| UL = 5
| UR = 7
| DL = 2
| DR = 9
| Name = Example usage
}}
==Some parser functions==
{{#ifeq: a | a | true | false}}
{{#time: U }}
==Some special characters==
{}[]<>|"'
==Some markup==
[[wikilink]]
[https://en.wikipedia.org link]
'''bold''' ''italics''
* item
{| class="wikitable"
! header
|-
| cell
|}
==Some tags==
<b>bold</b>
<span style="font-style: italic;">italics</span>
<pre>{{tl|template}}</pre>
<syntaxhighlight lang="wikitext">{{tl|template}}</syntaxhighlight> <ref>reference</ref>
<references />
==Some entities==
<>" {|}
{{template}}, =, |
Left | Right | |
Up | 5 | 7 |
Down | 2 | 9 |
Example usage |
true 1731512682
{}[]<>|"'
header |
---|
cell |
bold italics
{{tl|template}}
{{tl|template}}
<>" {|}
{{Demo/sandbox}}
==Some templates==
{{tl|template}}, {{=}}, {{!}}
{{payoff matrix
| UL = 5
| UR = 7
| DL = 2
| DR = 9
| Name = Example usage
}}
==Some parser functions==
{{#ifeq: a | a | true | false}}
{{#time: U }}
==Some special characters==
{}[]<>|"'
==Some markup==
[[wikilink]]
[https://en.wikipedia.org link]
'''bold''' ''italics''
* item
{| class="wikitable"
! header
|-
| cell
|}
==Some tags==
<b>bold</b>
<span style="font-style: italic;">italics</span>
<pre>{{tl|template}}</pre>
<syntaxhighlight lang="wikitext">{{tl|template}}</syntaxhighlight> <ref>reference</ref>
<references />
==Some entities==
<>" {|}
{{template}}, =, |
Left | Right | |
Up | 5 | 7 |
Down | 2 | 9 |
Example usage |
true 1731512682
{}[]<>|"'
header |
---|
cell |
bold italics
{{tl|template}}
{{tl|template}}
<>" {|}
{{demo}}
<b>bold</b>
<span style="font-style: italic;">italics</span>
<pre>{{tl|template}}</pre>
<syntaxhighlight lang="wikitext">{{tl|template}}</syntaxhighlight> <ref>reference</ref>
<references />
bold italics
{{tl|template}}
{{tl|template}}
{{demo/sandbox}}
<b>bold</b>
<span style="font-style: italic;">italics</span>
<pre>{{tl|template}}</pre>
<syntaxhighlight lang="wikitext">{{tl|template}}</syntaxhighlight> <ref>reference</ref>
<references />
bold italics
{{tl|template}}
{{tl|template}}
{{demo inline}}
{{tlp|template|a{{=}}b}}
→ {{template|a=b}}
{{tlp|template|a{{=}}b}}
{{Demo}}
{{tl|template}}
{{Demo/sandbox}}
{{tl|template}}
<br>
{{Demo}}
{{tl|template}}
{{Demo/sandbox}}
{{tl|template}}
<br>
s{{Demo}}
{{tl|template}}
{{Demo/sandbox}}
{{tl|template}}
|sep=produces
{{Demo}}
{{tl|template}}
{{Demo/sandbox}}
{{tl|template}}
|sep=produces
{{demo inline}}
{{tlp|template|a{{=}}b}}
produces {{template|a=b}}
{{tlp|template|a{{=}}b}}
|br=1
{{demo inline}}
{{tlp|template|a{{=}}b}}
{{template|a=b}}
{{tlp|template|a{{=}}b}}
|sep=<br>
{{demo inline}}
{{tlp|template|a{{=}}b}}
{{template|a=b}}
{{tlp|template|a{{=}}b}}
|sep=<td>
{{demo}}
{{tlp|template|a{{=}}b}}
| {{template|a=b}}
|
{{demo/sandbox}}
|
|reverse=1
{{demo}}
{{template|a=b}}{{tlp|template|a{{=}}b}}
{{demo/sandbox}}
{{tlp|template|a{{=}}b}}
|reverse=1
{{demo inline}}
{{template|a=b}} ← {{tlp|template|a{{=}}b}}
{{tlp|template|a{{=}}b}}
{{demo}}
* Item
* Item
{{demo/sandbox}}
* Item
* Item
{{demo}}
{| class="wikitext"
| Hello!
|}
| Hello! |}
{{demo/sandbox}}
{| class="wikitext"
| Hello!
|}
| Hello!
|}{{demo}}
{| class="wikitext"
| Hello!
|}
Hello! |
{{demo/sandbox}}
{| class="wikitext"
| Hello!
|}
Hello! |
|demo_module=
etc.{{demo}}
{{#invoke:Demo|module|demo_module=RoundN|demo_module_func=N2|demo_template=Round2
|bold_winner=high
|May 1|Team A|1|Team B|2
}}
{{Round2
|bold_winner=high
|May 1|Team A|1|Team B|2
}}
Final | ||
May 1 | ||
Team A | 1 | |
Team B | 2 | |
{{demo/sandbox}}
{{#invoke:Demo|module|demo_module=RoundN|demo_module_func=N2|demo_template=Round2
|bold_winner=high
|May 1|Team A|1|Team B|2
}}
{{Round2
|bold_winner=high
|May 1|Team A|1|Team B|2
}}
Final | ||
May 1 | ||
Team A | 1 | |
Team B | 2 | |
{{demo}}
\{\{[[Template:Notice|Notice]]\pHello there!\}\}
{{demo/sandbox}}
{{[[Template:Notice|Notice]]|Hello there!}}
Hello there! |
{{demo}}
<code>{{[[Template:Notice|notice]]|Hello there!}}</code>
{{notice|Hello there!}}
{{demo/sandbox}}
<code>{{[[Template:Notice|notice]]|Hello there!}}</code>
Hello there! |
{{demo}}
<code>{{[[Template:Tlx|tlx]]|notice|Hello there!}}</code>
{{tlx|notice|Hello there!}}
{{demo/sandbox}}
<code>{{[[Template:Tlx|tlx]]|notice|Hello there!}}</code>
{{notice|Hello there!}}
{{demo}}
<code>{{[[Template:Tlx|tlx]]|notice|Hello there!}}</code>
{{tlx|notice|Hello there!}}
{{demo/sandbox}}
<code>{{[[Template:Tlx|tlx]]|notice|Hello there!}}</code>
{{tlx|notice|Hello there!}}
{{demo}}
&#123;&#123;notice&#124;Hello there!&#125;&#125;
{{demo/sandbox}}
&#123;&#123;notice&#124;Hello there!&#125;&#125;