Module:Template test case/testcases: Difference between revisions

Content deleted Content added
update
update
Line 18:
end
 
function p:test2a_showcaption_notest2a_showheader_no()
self:preprocess_equals_preprocess(
'{{#invoke:Template test case |main |_format=columns |_showcaption_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}',
'{{#invoke:Template test case/sandbox |main |_format=columns |_showcaption_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}'
)
end
 
function p:test2b_showcaption_notest2b_showheader_no()
self:preprocess_equals_preprocess(
'{{#invoke:Template test case |main |_format=columns |_showcaption_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}',
'{{#invoke:Template test case/sandbox |main |_format=columns |_showcaption_showheader=no |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}',
{nowiki=1}
)
end
 
function p:test3a_showheader_notest3a_caption_nbsp()
self:preprocess_equals_preprocess(
'{{#invoke:Template test case |main |_format=columns |_showheader_caption=no  |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}',
'{{#invoke:Template test case/sandbox |main |_format=columns |_showheader_caption=no  |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}'
)
end
 
function p:test3b_showheader_notest3b_caption_nbsp()
self:preprocess_equals_preprocess(
'{{#invoke:Template test case |main |_format=columns |_showheader_caption=no  |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}',
'{{#invoke:Template test case/sandbox |main |_format=columns |_showheader_caption=no  |_template1=Commons-inline |_template2=Commons category-inline |_template3=Commons and category-inline |Lorem ipsum|Lorem ipsum}}',
{nowiki=1}
)
end
 
function p:test4a_showcaption_no()
self:preprocess_equals_preprocess(
'{{#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}}',
'{{#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}}'
)
end
 
function p:test4b_showcaption_no()
self:preprocess_equals_preprocess(
'{{#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}}',
'{{#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}}',
{nowiki=1}
)