Module:Is live show
Documentation for this module may be created at Module:Is live show/doc
local p = {}
function p._isLiveShow(title)
local fragment = string.sub(title, -10)
return string.match(fragment, "%d%d%d%d%-%d%d%-%d%d")
end
function p.main(frame)
if p._isLiveShow(frame.args[1]) then
return '1'
end
return ''
end
function p.get_date(title)
return p._isLiveShow(frame.args[1])
end
return p