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 (field 'line_2' will reject 'TM12', because it uses inset shadows to achieve the double stripe effect) if args.line ~= nil then line = 'border-top:'..p.line(args.line,args.name) end if args.line_2 ~= nil and args.line_2 ~= 'TM12' then line = line..';border-bottom:'..p.line(args.line_2,args.name) end
-- Mode style if args.mode
'KAT' then name[2] = elseif name[2]
'..mode[1]..'
'..frame:expandTemplate..name[2]..'
'..mode[2]..'
'end
function p.line(s,n) if s
'AM2' or s
'TM12' then c = 'DA291C' elseif s
'TM2' or s
'AM4' then c = 'FFA300' elseif s
'Athina' then c = '00A3E0' else c = 'FFCD00' end elseif s
'AT' then c = '78BE20' else return 'none' end
if 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
'TM' then m = elseif s
'end
return p