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.title.getCurrentTitle()
local template1 = args['_template1'] or (frame:expandTemplate{ title = 'BASEPAGENAME'})
local template2template1 = args['_template2_template1'] or (frame:expandTemplate{ title = 'BASEPAGENAME'} .. '/sandbox'basePageTitle)
local heading1template2 = args['_heading1_template2'] or '{{tld|' (title.. template1basePageTitle .. '}}/sandbox')
local heading2heading1 = args['_heading2_heading1'] or '{{tld|' .. template2template1 .. '}}'
local heading2 = args['_heading2'] or '{{' .. template2 .. '}}'
local res = ''