Module:Template test case: Difference between revisions

Add a "before" parameter, similar to "after" but placed before template output. Only exists in column mode (function TestCase:renderColumns). See Template:Test case/testcases#Columns format with custom headings
(Allow custom headings to work in default format, same as in rows or columns format. See Template:Test case/testcases#Default format with custom headings and Template:Test case nowiki/testcases#Default format with custom headings.)
(Add a "before" parameter, similar to "after" but placed before template output. Only exists in column mode (function TestCase:renderColumns). See Template:Test case/testcases#Columns format with custom headings)
Line 360:
dataRow:tag('td')
:newline()
:wikitext(self.options.before)
:wikitext(self:getTemplateOutput(obj))
:wikitext(self.options.after)
Anonymous user