Template:Demo/testcases

From Wikipedia, the free encyclopedia


A lot of markup in one test case

{{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==
&nbsp;<>"&#32;&#123;&#124;&#125;

Some templates[edit]

{{template}}, =, |

Left Right
Up 5 7
Down 2 9
Example usage

Some parser functions[edit]

true 1715712941

Some special characters[edit]

{}[]<>|"'

Some markup[edit]

wikilink link bold italics

  • item
header
cell

Some tags[edit]

bold italics

{{tl|template}}
{{tl|template}}
[1]
  1. ^ reference

Some entities[edit]

 <>" {|}


{{Demo/sandbox}}

Using this code:
==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==  <>" {|}
yields:

Some templates[edit]

{{template}}, =, |

Left Right
Up 5 7
Down 2 9
Example usage

Some parser functions[edit]

true 1715712941

Some special characters[edit]

{}[]<>|"'

Some markup[edit]

wikilink link bold italics

  • item
header
cell

Some tags[edit]

bold italics

{{tl|template}}
{{tl|template}}
[1]
  1. ^ reference

Some entities[edit]

 <>" {|}

HTML tags

{{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}}
[1]
  1. ^ reference


{{demo/sandbox}}

Using this code:
<b>bold</b> <span style="font-style: italic;">italics</span> <pre>{{tl|template}}</pre> <syntaxhighlight lang="wikitext">{{tl|template}}</syntaxhighlight> <ref>reference</ref> <references />
yields:
bold italics
{{tl|template}}
{{tl|template}}
[1]
  1. ^ reference
Inline

{{demo inline}}

{{tlp|template|a{{=}}b}}{{template|a=b}}

{{demo inline/sandbox}}

Using this code: {{tlp|template|a{{=}}b}} yields: {{template|a=b}}

Default separator

{{Demo}}

{{tl|template}}
{{template}}

{{Demo/sandbox}}

Using this code:
{{tl|template}}
yields:
{{template}}
One <br>

{{Demo}}

{{tl|template}}

{{template}}

{{Demo/sandbox}}

Using this code:
{{tl|template}}
yields:
{{template}}
Two <br>s

{{Demo}}

{{tl|template}}


{{template}}

{{Demo/sandbox}}

Using this code:
{{tl|template}}
yields:
{{template}}
|sep=produces

{{Demo}}

{{tl|template}}
produces {{template}}

{{Demo/sandbox}}

Using this code:
{{tl|template}}
yields:
{{template}}
Inline, |sep=produces

{{demo inline}}

{{tlp|template|a{{=}}b}} produces {{template|a=b}}

{{demo inline/sandbox}}

Using this code: {{tlp|template|a{{=}}b}} yields: {{template|a=b}}

Inline, |br=1

{{demo inline}}

{{tlp|template|a{{=}}b}}
{{template|a=b}}

{{demo inline/sandbox}}

Using this code: {{tlp|template|a{{=}}b}} yields: {{template|a=b}}

Inline, |sep=<br>

{{demo inline}}

{{tlp|template|a{{=}}b}}
{{template|a=b}}

{{demo inline/sandbox}}

Using this code: {{tlp|template|a{{=}}b}} yields: {{template|a=b}}

|sep=<td>

{{demo}}

{{tlp|template|a{{=}}b}}
{{template|a=b}}

{{demo/sandbox}}

Using this code:
{{tlp|template|a{{=}}b}}
yields:
{{template|a=b}}
|reverse=1

{{demo}}

{{template|a=b}}
{{tlp|template|a{{=}}b}}

{{demo/sandbox}}

Using this code:
{{tlp|template|a{{=}}b}}
yields:
{{template|a=b}}
Inline, |reverse=1

{{demo inline}}

{{template|a=b}}{{tlp|template|a{{=}}b}}

{{demo inline/sandbox}}

Using this code: {{tlp|template|a{{=}}b}} yields: {{template|a=b}}

Line-start markup

{{demo}}

* Item
* Item
* Item
  • Item

{{demo/sandbox}}

Using this code:
* Item * Item
yields:
* Item
  • Item
Line-start markup, leading newline in snippet

{{demo}}

* Item
* Item
  • Item
  • Item

{{demo/sandbox}}

Using this code:
* Item * Item
yields:
  • Item
  • Item
|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 A1
 
 
Team B2
 

{{demo/sandbox}}

Using this code:
{{#invoke:Demo|module|demo_module=RoundN|demo_module_func=N2|demo_template=Round2 |bold_winner=high |May 1|Team A|1|Team B|2 }}
yields:
{{Round2
|bold_winner=high
|May 1|Team A|1|Team B|2
}}
 
Final
 
  
 
May 1
 
 
Team A1
 
 
Team B2
 
escaping code

{{demo}}

\{\{[[Template:Notice|Notice]]\pHello there!\}\}
\{\{Notice\pHello there!\}\}


{{demo/sandbox}}

Using this code:
{{Notice|Hello there!}}
yields:
escaping code

{{demo}}

<code>&#123;&#123;[[Template:Notice|notice]]&#124;Hello there!&#125;&#125;</code>
{{notice|Hello there!}}


{{demo/sandbox}}

Using this code:
{{notice|Hello there!}}
yields:
escaping code

{{demo}}

<code>&#123;&#123;[[Template:Tlx|tlx]]&#124;notice&#124;Hello there!&#125;&#125;</code>
{{tlx|notice|Hello there!}}


{{demo/sandbox}}

Using this code:
{{tlx|notice|Hello there!}}
yields:
{{notice|Hello there!}}
escaping code

{{demo}}

<code>&#123;&#123;[[Template:Tlx|tlx]]&#124;notice&#124;Hello there!&#125;&#125;</code>
{{tlx|notice|Hello there!}}


{{demo/sandbox}}

Using this code:
<code>&#123;&#123;[[Template:Tlx|tlx]]&#124;notice&#124;Hello there!&#125;&#125;</code>
yields:
{{tlx|notice|Hello there!}}
escaping code

{{demo}}

&amp;#123;&amp;#123;notice&amp;#124;Hello there!&amp;#125;&amp;#125;
&#123;&#123;notice&#124;Hello there!&#125;&#125;


{{demo/sandbox}}

Using this code:
&#123;&#123;notice&#124;Hello there!&#125;&#125;
yields:
{{notice|Hello there!}}