Module:Aired

-- code by Kocka; Dev Wiki local p = {} local Date = require('Dev:Date') local colors = require('Dev:Colors')

function p.main(frame) local page_name = frame.args[1] local aired_date_string = frame.args[2] if type(aired_date_string) == 'string' and aired_date_string ~= '' then local current_date = Date local aired_date = Date(aired_date_string) if aired_date < current_date then return table.concat({aired_date_string, '|| Aired '}) else return table.concat({aired_date_string, '|| Not aired '}) end else return 'Unknown || Unknown' end end return p