Module:Template translation: Difference between revisions

m
16 revisions imported
No edit summary
m (16 revisions imported)
 
(16 intermediate revisions by 11 users not shown)
Line 253:
TemplateSandbox; mocking it with this method means templates won't be
localized but at least TemplateSandbox substitutions will work properly.
Won't work with complex uses.
]]
function this.mockTNT(frame)
Line 270 ⟶ 271:
end
end
returnif frame:expandTemplate{title =not pargs[1], args = arguments}
then
return ''
end
return frame:expandTemplate{title = 'Template:' .. pargs[1], args = arguments}
end