copy from wp
 
mNo edit summary
 
Line 480: Line 480:
else
else
ret = string.format(
ret = string.format(
'<strong class="error">Error in [[Template:Date table sorting]]: %s</strong>',
'<strong class="error">Error in [[Template:Date table sort]]: %s</strong>',
ret
ret
)
)
if mw.title.getCurrentTitle().namespace == 0 then
if mw.title.getCurrentTitle().namespace == 0 then
-- Only categorise in the main namespace
-- Only categorise in the main namespace
ret = ret .. '[[Category:Date table sorting templates with errors]]'
ret = ret .. '[[Category:Date table sort templates with errors]]'
end
end
return ret
return ret
Line 493: Line 493:
function p.main(frame)
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {
local args = require('Module:Arguments').getArgs(frame, {
wrappers = 'Template:Date table sorting',
wrappers = 'Template:Date table sort',
})
})
return p._main(args)
return p._main(args)