Difference between revisions of "Module:Template translation"

no edit summary
>Tgr (WMF)
>Tgr (WMF)
Line 253: Line 253:
     TemplateSandbox; mocking it with this method means templates won't be
     TemplateSandbox; mocking it with this method means templates won't be
     localized but at least TemplateSandbox substitutions will work properly.
     localized but at least TemplateSandbox substitutions will work properly.
    Won't work with complex uses.
     ]]
     ]]
function this.mockTNT(frame)
function this.mockTNT(frame)
Line 274: Line 275:
     return ''
     return ''
end
end
     return frame:expandTemplate{title = pargs[1], args = arguments}
     return frame:expandTemplate{title = 'Template:' .. pargs[1], args = arguments}
end
end


return this
return this
Anonymous user