<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate_test_case%2Ftestcases</id>
	<title>Module:Template test case/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate_test_case%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Template_test_case/testcases&amp;action=history"/>
	<updated>2026-06-07T06:14:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Template_test_case/testcases&amp;diff=147238&amp;oldid=prev</id>
		<title>imported&gt;Aidan9382: Properly use stripmarker</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Template_test_case/testcases&amp;diff=147238&amp;oldid=prev"/>
		<updated>2022-05-21T05:07:28Z</updated>

		<summary type="html">&lt;p&gt;Properly use stripmarker&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Unit tests for [[Module:Template test case]]. Click talk page to run tests.&lt;br /&gt;
&lt;br /&gt;
local p = require(&amp;#039;Module:UnitTests&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p:test01_columns()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |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}}&amp;#039;&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test01_columns_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |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}}&amp;#039;,&lt;br /&gt;
        {nowiki=1}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test02_showheader()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=columns |_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test02_showheader_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=columns |_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        {nowiki=1}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test03_caption()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_format=columns |_caption=&amp;amp;nbsp; |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=columns |_caption=&amp;amp;nbsp; |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test03_caption_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_format=columns |_caption=&amp;amp;nbsp; |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=columns |_caption=&amp;amp;nbsp; |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        {nowiki=1}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test04_showcaption()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=columns |_showcaption=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test04_showcaption_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=columns |_showcaption=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        {nowiki=1}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test05_addline()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}} }}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=Output of Convert template: {{Cvt|1.51|m|frac=2}} }}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test05_addline_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#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}} }}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=Output of Convert template: {{Cvt|1.51|m|frac=2}} }}&amp;#039;,&lt;br /&gt;
        {nowiki=1,stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test06_output()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_output=nowiki |_format=inline |_showcode=yes |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_output=nowiki |_format=inline |_showcode=yes |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test07_output()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_output=nowiki+ |_format=inline |_showcode=yes |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_output=nowiki+ |_format=inline |_showcode=yes |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test08_prefix()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_format=inline |_prefix=# |_showcode=yes |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=inline |_prefix=# |_showcode=yes |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test09_prefix()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_format=inline |_prefix=: |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_format=inline |_prefix=: |_template1=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test10_collapsible()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test10_collapsible_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true, nowiki=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test11_collapsible_title()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_title=Testing height template |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_showcode=yes |_title=Testing height template |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test11_collapsible_title_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_showcode=yes |_title=Testing height template |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_showcode=yes |_title=Testing height template |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true, nowiki=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test12_collapsible_titlecode()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_titlecode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_titlecode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test12_collapsible_titlecode_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_titlecode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_titlecode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {nowiki=true,stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function p:test13_wantdiff()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test13_wantdiff_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true, nowiki=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test13_wantdiff_2_wiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template1=Commons-inline |_template2=Commons category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template1=Commons-inline |_template2=Commons category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test13_wantdiff_2()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template1=Commons-inline |_template2=Commons category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template1=Commons-inline |_template2=Commons category-inline |Lorem ipsum|Lorem ipsum}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true, nowiki=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test13_wantdiff_3()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test13_wantdiff_3_nowiki()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=Height |m=1.51}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true, nowiki=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test14_equals_sign_parameter()&lt;br /&gt;
    self:preprocess_equals_preprocess(&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case/sandbox |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=3x |{{=}}|name=value}}&amp;#039;,&lt;br /&gt;
        &amp;#039;{{#invoke:Template test case         |main |_collapsible=yes |_wantdiff=yes |_showcode=yes |_template=3x |{{=}}|name=value}}&amp;#039;,&lt;br /&gt;
        {stripmarker=true, nowiki=true}&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Aidan9382</name></author>
	</entry>
</feed>