Module:Template test case: Difference between revisions

use wikitext bulleted lists for the inline format after all
(allow _template to override _template1 for backwards compatibility with Module:Testcase table)
(use wikitext bulleted lists for the inline format after all)
Line 386:
function TestCase:renderInline()
local arrow = mw.language.getContentLanguage():getArrow('forwards')
local listret = mw.html.create('ul'){}
list
:addClass(self.options.class)
:cssText(self.options.style)
for i, obj in ipairs(self.templates) do
local line = {}
line[#line + 1] = '* '
if self.options.showcode then
line[#line + 1] = obj:getInvocation('code')
Line 399 ⟶ 397:
end
line[#line + 1] = self:getTemplateOutput(obj)
:wikitext(ret[#ret + 1] = table.concat(line))
list
:tag('li')
:newline()
:wikitext(table.concat(line))
end
return tostringtable.concat(listret)
end