Module:Testcase table: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 3:
function p.testcase(frame)
local args = frame.args
local title = mw.ustring.gsub(mw.title.getCurrentTitle().text, '/testcases$', '');
local template1 = args['_template1'] or (title.basePageTitle())
local template2 = args['_template2'] or (title.basePageTitle() .. '/sandbox')
local heading1 = args['_heading1'] or '{{' .. template1 .. '}}'
local heading2 = args['_heading2'] or '{{' .. template2 .. '}}'