Content deleted Content added
No edit summary Tag: Reverted |
|||
Line 2:
local getArgs = require('Module:Arguments').getArgs
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 color = parser(args, 'color')
local routeType = args.type
if deleted or color == 'deleted' then
return "header-deleted"
elseif uc or color == 'uc' then
return "header-uc"
elseif hist or color == 'hist' then
return "header-hist"
elseif color ~= '' then
return "header-" .. country .. "-" .. routeType
else return "header-default"
end
|