Module:Infobox road/sandbox: Difference between revisions

Content deleted Content added
No edit summary
let's try this again
Line 6:
function p.headerStyle(frame)
local args = getArgs(frame)
local deleted = args.decommissioned or args.deleted or args.former
if deleted then
return "background:#AAAbbb;"
end
local uc = args["under construction"] or args.const or args.uc
if uc then
return "background:#fc6;"
end
local hist = args.hist or args.historic or args.historical or args.scenic
if hist then
return "background:#704214; color:#fff;"
end
local colors = require"Module:Infobox road/color/sandbox"
else return colors.headercolor(frame)
local function colour(args, frame)
if args.header_type == deleted then
return deleted
elseif args.header_type == uc then
return uc
elseif args.header_type == hist then
return hist
else return colors.header(frame)
end
end
end