local getArgs = require('Module:Arguments').getArgslocal p =
function p.main(frame) local args = getArgs(frame,) local sign = local line = local mode =
local name =
-- Box style if args.mode
-- Line style if args.line ~= nil then line = 'border-top:'..p.line(args.line,args.name) end if args.line_2 ~= nil then line = line..';border-bottom:'..p.line(args.line_2,args.name) end
-- Mode style if args.mode
mw.log(p.mode(args.mode)) -- English name style if name[2]
'Athens International Airport' then name[2] = '
return '
'..mode[1]..'
'..frame:expandTemplate..name[2]..'
'..mode[2]..'
'end
function p.line(s,n) if s
'AM2' then c = 'DA291C' elseif s
'TS' then c = '10069F' elseif s
'AS' then if n
'ASK' then c = '00A3E0' elseif s
function p.mode(s,f) if s
'r' then return '
' elseif s
'SO' then m = elseif s
'AM' then m = elseif s
'AT' then m = elseif s
'TS' then m = else return end return '
'end
return p