Module:Infobox road/sandbox: Difference between revisions

Content deleted Content added
ope
synch
Line 23:
-- HEADER COLORS
 
function p._headerStyleheaderStyle(argsframe)
local args = getArgs(frame)
local deleted = args.decommissioned or args.deleted
local header
local uc = args.header_type == "under construction" or args.header_type == "const" or args.header_type == "uc"
local minor = if args.header_type == "minor"nil then
header = args.header_type
local hist = args.header_type == "hist" or args.header_type == "historic" or args.header_type == "historical" or args.header_type == "scenic"
else
header = string.lower(args.header_type)
end
local deleted = args.decommissioned or args.deleted or header == "former"
local uc = args.header_typeheader == "under construction" or args.header_typeheader == "const" or args.header_typeheader == "uc"
local minor = header == "minor"
local hist = args.header_typeheader == "hist" or args.header_typeheader == "historic" or args.header_typeheader == "historical" or args.header_typeheader == "scenic"
local color = parser(args, 'color')
local freeway = header == "freeway"
if ucfreeway then
return "header-MUTCDblue"
elseif uc then
return "header-uc"
elseif minor then