Module talk:Template test case/testcases

17 of 27 tests failed.

test01_columns
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_caption=_caption |_rowheader=_rowheader |_heading0=_heading0 |_heading1=_heading1 |_heading2=_heading2 |_heading3=_heading3 |_before=_before |_after=_after |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}
_caption
_heading0_heading1_heading2_heading3
_rowheader _before Media related to Lorem ipsum at Wikimedia Commons_after _before Media related to Lorem ipsum at Wikimedia Commons_after _before Media related to Lorem ipsum (category) at Wikimedia Commons_after
_caption
_heading0_heading1_heading2_heading3
_rowheader _before Media related to Lorem ipsum at Wikimedia Commons_after _before Media related to Lorem ipsum at Wikimedia Commons_after _before Media related to Lorem ipsum (category) at Wikimedia Commons_after
test01_columns_nowiki
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_caption=_caption |_rowheader=_rowheader |_heading0=_heading0 |_heading1=_heading1 |_heading2=_heading2 |_heading3=_heading3 |_before=_before |_after=_after |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}} <table><caption>_caption</caption><tr><th>_heading0</th><th style="width:33%">_heading1</th><th style="width:33%">_heading2</th><th style="width:33%">_heading3</th></tr><tr style="vertical-align:top"><th scope="row">_rowheader</th><td>

_before[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons_after</td><td> _before[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons_after</td><td> _before[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons_after</td></tr></table>[[Category:Test cases using heading parameters]]

<table><caption>_caption</caption><tr><th>_heading0</th><th style="width:33%">_heading1</th><th style="width:33%">_heading2</th><th style="width:33%">_heading3</th></tr><tr style="vertical-align:top"><th scope="row">_rowheader</th><td>

_before[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons_after</td><td> _before[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons_after</td><td> _before[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons_after</td></tr></table>[[Category:Test cases using heading parameters]]

test02_showheader
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}
Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum (category) at Wikimedia Commons
Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum (category) at Wikimedia Commons
test02_showheader_nowiki
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}} <table><tr style="vertical-align:top"><td>

[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons</td></tr></table>

<table><tr style="vertical-align:top"><td>

[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons</td></tr></table>

test03_caption
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_caption=&nbsp; |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}
 
{{Commons-inline}}{{Commons category-inline}}{{Commons and category-inline}}
Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum (category) at Wikimedia Commons
 
{{Commons-inline}}{{Commons category-inline}}{{Commons and category-inline}}
Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum (category) at Wikimedia Commons
test03_caption_nowiki
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_caption=&nbsp; |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}} <table><caption>&nbsp;</caption><tr><th style="width:33%">&#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons category-inline|Commons category-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons and category-inline|Commons and category-inline]]&#125;&#125;</th></tr><tr style="vertical-align:top"><td>

[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons</td></tr></table>

<table><caption>&nbsp;</caption><tr><th style="width:33%">&#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons category-inline|Commons category-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons and category-inline|Commons and category-inline]]&#125;&#125;</th></tr><tr style="vertical-align:top"><td>

[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons</td></tr></table>

test04_showcaption
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_showcaption=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}
{{Commons-inline}}{{Commons category-inline}}{{Commons and category-inline}}
Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum (category) at Wikimedia Commons
{{Commons-inline}}{{Commons category-inline}}{{Commons and category-inline}}
Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum at Wikimedia Commons Media related to Lorem ipsum (category) at Wikimedia Commons
test04_showcaption_nowiki
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=columns |_showcaption=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}} <table><tr><th style="width:33%">&#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons category-inline|Commons category-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons and category-inline|Commons and category-inline]]&#125;&#125;</th></tr><tr style="vertical-align:top"><td>

[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons</td></tr></table>

<table><tr><th style="width:33%">&#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons category-inline|Commons category-inline]]&#125;&#125;</th><th style="width:33%">&#123;&#123;[[:Template:Commons and category-inline|Commons and category-inline]]&#125;&#125;</th></tr><tr style="vertical-align:top"><td>

[[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons</td><td> [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] ([[Commons:Category:Lorem ipsum|category]]) at Wikimedia Commons</td></tr></table>

test05_addline
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=Output of Convert template: {{Cvt|1.51|m|frac=2}} }}
  • {{Height|m=1.51}}1.51 m (4 ft 11+12 in)
  • {{Height/sandbox|m=1.51}}1.51 m (4 ft 11+12 in)
  • Output of Convert template: 1.51 m (4 ft 11+12 in)
  • {{Height|m=1.51}}1.51 m (4 ft 11+12 in)
  • {{Height/sandbox|m=1.51}}1.51 m (4 ft 11+12 in)
  • Output of Convert template: 1.51 m (4 ft 11+12 in)
test05_addline_nowiki
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=Output of Convert template: {{Cvt|1.51|m|frac=2}} }} * <code>&#123;&#123;Height&#124;m&#61;1.51&#125;&#125;</code> → '"`UNIQ--templatestyles-00000005-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)

* <code>&#123;&#123;Height/sandbox&#124;m&#61;1.51&#125;&#125;</code> → '"`UNIQ--templatestyles-00000006-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) * Output of Convert template: '"`UNIQ--templatestyles-00000004-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)

* <syntaxhighlight lang="wikitext" inline>{{Height|m=1.51}}</syntaxhighlight> → '"`UNIQ--templatestyles-00000002-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)

* <syntaxhighlight lang="wikitext" inline>{{Height/sandbox|m=1.51}}</syntaxhighlight> → '"`UNIQ--templatestyles-00000003-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) * Output of Convert template: '"`UNIQ--templatestyles-00000000-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)

test06_output
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_output=nowiki |_format=inline |_showcode=yes |_template1=Height |m=1.51}}
  • {{Height|m=1.51}} → '"`UNIQ--templatestyles-00000009-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
  • {{Height/sandbox|m=1.51}} → '"`UNIQ--templatestyles-0000000A-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
  • {{Height|m=1.51}} → '"`UNIQ--templatestyles-00000007-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
  • {{Height/sandbox|m=1.51}} → '"`UNIQ--templatestyles-00000008-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
test07_output
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_output=nowiki+ |_format=inline |_showcode=yes |_template1=Height |m=1.51}}
  • {{Height|m=1.51}}1.51 m (4 ft 11+12 in)
    '"`UNIQ--templatestyles-0000000D-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
  • {{Height/sandbox|m=1.51}}1.51 m (4 ft 11+12 in)
    '"`UNIQ--templatestyles-0000000E-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
  • {{Height|m=1.51}}1.51 m (4 ft 11+12 in)
    '"`UNIQ--templatestyles-0000000B-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
  • {{Height/sandbox|m=1.51}}1.51 m (4 ft 11+12 in)
    '"`UNIQ--templatestyles-0000000C-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in)
test08_prefix
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_format=inline |_prefix=# |_showcode=yes |_template1=Height |m=1.51}}
  1. {{Height|m=1.51}}1.51 m (4 ft 11+12 in)
  2. {{Height/sandbox|m=1.51}}1.51 m (4 ft 11+12 in)
  1. {{Height|m=1.51}}1.51 m (4 ft 11+12 in)
  2. {{Height/sandbox|m=1.51}}1.51 m (4 ft 11+12 in)
test09_prefix
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_format=inline |_prefix=: |_template1=Height |m=1.51}}
1.51 m (4 ft 11+12 in)
1.51 m (4 ft 11+12 in)
1.51 m (4 ft 11+12 in)
1.51 m (4 ft 11+12 in)
test10_collapsible
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_template=Height |m=1.51}}
{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

test10_collapsible_nowiki
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_template=Height |m=1.51}} <div class="mw-collapsible mw-collapsed" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:lightgreen;color:black;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Height|Height]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-0000001A-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-0000001B-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-0000001C-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

<div class="mw-collapsible mw-collapsed" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:lightgreen;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Height|Height]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-00000017-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-00000018-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-00000019-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

test11_collapsible_title
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_title=Testing height template |_template=Height |m=1.51}}
Testing height template
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

Testing height template
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

test11_collapsible_title_nowiki
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_title=Testing height template |_template=Height |m=1.51}} <div class="mw-collapsible mw-collapsed" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:lightgreen;color:black;font-weight:bold;padding:0.2em">Testing height template</div><div class="mw-collapsible-content">

'"`UNIQ--pre-00000020-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-00000021-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-00000022-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

<div class="mw-collapsible mw-collapsed" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:lightgreen;font-weight:bold;padding:0.2em">Testing height template</div><div class="mw-collapsible-content">

'"`UNIQ--pre-0000001D-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-0000001E-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-0000001F-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

test12_collapsible_titlecode
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_titlecode=yes |_template=Height |m=1.51}}
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

test12_collapsible_titlecode_nowiki
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_titlecode=yes |_template=Height |m=1.51}} <div class="mw-collapsible mw-collapsed" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:lightgreen;color:black;font-weight:bold;padding:0.2em"><kbd>&#123;&#123;Height&#124;m&#61;1.51&#125;&#125;</kbd></div><div class="mw-collapsible-content">

<div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-00000025-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-00000026-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

<div class="mw-collapsible mw-collapsed" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:lightgreen;font-weight:bold;padding:0.2em"><kbd>&#123;&#123;Height&#124;m&#61;1.51&#125;&#125;</kbd></div><div class="mw-collapsible-content">

<div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-00000023-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-00000024-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

test13_wantdiff
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}
{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

test13_wantdiff_2
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template1=Commons-inline |_template2=Commons category-inline |Lorem ipsum|Lorem ipsum}} <div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:#90a8ee;color:black;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-0000002E-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125; [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons <div style="clear: both;"></div> &#123;&#123;[[:Template:Commons category-inline|Commons category-inline]]&#125;&#125; [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons </div></div>

<div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:#90a8ee;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-0000002D-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Commons-inline|Commons-inline]]&#125;&#125; [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons <div style="clear: both;"></div> &#123;&#123;[[:Template:Commons category-inline|Commons category-inline]]&#125;&#125; [[File:Commons-logo.svg|16x16px|class=noviewer|alt=]] Media related to [[Commons:Category:Lorem ipsum|Lorem ipsum]] at Wikimedia Commons </div></div>

test13_wantdiff_2_wiki
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template1=Commons-inline |_template2=Commons category-inline |Lorem ipsum|Lorem ipsum}}
{{Commons-inline|Lorem ipsum|Lorem ipsum}}

{{Commons-inline}}

Media related to Lorem ipsum at Wikimedia Commons

{{Commons category-inline}}

Media related to Lorem ipsum at Wikimedia Commons

{{Commons-inline|Lorem ipsum|Lorem ipsum}}

{{Commons-inline}}

Media related to Lorem ipsum at Wikimedia Commons

{{Commons category-inline}}

Media related to Lorem ipsum at Wikimedia Commons

test13_wantdiff_3
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}
{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51 m (4 ft 11+12 in)

{{Height/sandbox}}

1.51 m (4 ft 11+12 in)

test13_wantdiff_3_nowiki
Text Expected Actual
checkY {{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}} <div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:yellow;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Height|Height]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-00000027-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-00000028-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-00000029-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

<div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:yellow;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Height|Height]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-00000027-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-00000028-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-00000029-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

test13_wantdiff_nowiki
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}} <div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:yellow;color:black;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Height|Height]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-0000002A-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-0000002B-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-0000002C-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

<div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:yellow;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:Height|Height]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-00000027-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:Height|Height]]&#125;&#125; '"`UNIQ--templatestyles-00000028-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) <div style="clear: both;"></div> &#123;&#123;[[:Template:Height/sandbox|Height/sandbox]]&#125;&#125; '"`UNIQ--templatestyles-00000029-QINU`"'1.51&nbsp;m (4&nbsp;ft <span class="frac">11<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;in) </div></div>

test14_equals_sign_parameter
Text Expected Actual
☒N {{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=3x |{{=}}|name=value}} <div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:yellow;color:black;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:3x|3x]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-00000030-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:3x|3x]]&#125;&#125; === <div style="clear: both;"></div> &#123;&#123;[[:Template:3x/sandbox|3x/sandbox]]&#125;&#125; === </div></div>

<div class="mw-collapsible" style="width:100%;border:solid silver 1px;padding:0.2em;clear:both"><div style="background-color:yellow;font-weight:bold;padding:0.2em">&#123;&#123;[[:Template:3x|3x]]&#125;&#125;</div><div class="mw-collapsible-content">

'"`UNIQ--pre-0000002F-QINU`"' <div style="clear: both;"></div> &#123;&#123;[[:Template:3x|3x]]&#125;&#125; === <div style="clear: both;"></div> &#123;&#123;[[:Template:3x/sandbox|3x/sandbox]]&#125;&#125; === </div></div>

Start a discussion about improving the Module:Template test case/testcases page

Start a discussion