Module:Template translation: Difference between revisions

Qv1et (talk | contribs)
Add dummy Template translation module to fix missing module errors
 
Qv1et (talk | contribs)
Try to fix error
Line 2: Line 2:
local p = {}
local p = {}


-- Some templates call "checkTranslation"
function p.checkTranslation(frame)
function p.checkTranslation(frame)
     -- Do nothing; just prevent script errors
     -- Return nothing, but no error
     return ''
     return ''
end
end


-- Some templates call "layout"
function p.layout(frame)
function p.layout(frame)
     -- Also return nothing
     -- Return nothing, but no error
     return ''
     return ''
end
end
-- Some templates call "main" (rare, but safe to include)
function p.main(frame)
    return ''
end
-- Must return a table to avoid "nil value" errors
return p