Module:Testcase table: Difference between revisions

Content deleted Content added
see if this helps
add _template option
Line 7:
local args = frame:getParent().args
local basepagename = mw.ustring.gsub(mw.title.getCurrentTitle().text, '/.*$', '');
local template1 = args['_template1'] or args['_template'] or (basepagename)
local template2 = args['_template2'] or (basepagenametemplate1 .. '/sandbox')
local heading1 = args['_heading1'] or '{{[[Template:' .. template1 .. '|' .. template1 ..']]}}'
local heading2 = args['_heading2'] or '{{[[Template:' .. template2 .. '|' .. template2 ..']]}}'