Module:Testcase table: Difference between revisions

Content deleted Content added
partial undo - you can't pass the arguments directly to the other table directly from the frame object, you need to use pairs()
see if this helps
Line 17:
t[k] = v
end
local res1 = frame:expandTemplate{ title = template1, args = t }
local res2 = frame:expandTemplate{ title = template2, args = t }
return mw.ustring.format( [==[
Line 29 ⟶ 26:
caption,
heading1, heading2,
local res1 = frame:expandTemplate{ title = template1, args = t },
res1,
local res2 = frame:expandTemplate{ title = template2, args = t }
res2
)
end