Module:Infobox road/sandbox: Difference between revisions

Content deleted Content added
Restored revision 1010751744 by Fredddie (talk)
test
Line 3:
local roadDataModule = require("Module:Road data")
local util = require("Module:Road data/util")
local parserModule = require("Module:Road data/parser")
local parser = parserModule.parser
 
function p.headerStyle(frame)
Line 9 ⟶ 11:
local uc = args.header_type == "under construction" or args.header_type == "const" or args.header_type == "uc"
local hist = args.header_type == "hist" or args.header_type == "historic" or args.header_type == "historical" or args.header_type == "scenic"
local routeTypecolor = parser(args.type, 'color')
if deleteduc then
return "header-deleted"
elseif uc then
return "header-uc"
elseif hist then
return "header-hist"
elseif deleted then
return "header-deleted"
elseif uccolor then
return "header-" .. color
else return "header-default"
end