Module:Template test case: Difference between revisions

use a bulleted list for the inline format because grr bug 14974
(add TestCase:renderInline and add newlines between the render output when making collapsible test cases)
(use a bulleted list for the inline format because grr bug 14974)
Line 377:
function TestCase:renderInline()
local arrow = mw.language.getContentLanguage():getArrow('forwards')
local retlist = {}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 388 ⟶ 390:
end
line[#line + 1] = self:getTemplateOutput(obj)
list
ret[#ret + 1] = table.concat(line)
:tag('li')
:newline()
ret[#ret + 1] = :wikitext(table.concat(line))
end
return table.concat(ret, '\n')