Module:Template translation: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
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 |
||