Module:Infobox road/sandbox: Difference between revisions

Content deleted Content added
No edit summary
try this
Line 10:
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 country = emptyParam(args.country)
local state = emptyParam(args.state)
local province = emptyParam(args.province)
if not(country) then
local stateParam = args.state or args.province
if not(stateParam) then
country = ''
else
local countryMask = require "Module:Infobox road/meta/mask/country"
country = countryMask._country(stateParam, country)
end
end
data = countries(args, country)
if deleted then
return "header-deleted"
Line 17 ⟶ 33:
return "header-hist"
elseif args.country ~= '' or args.state ~= '' or args.province ~= '' then
return "header-" .. tostring(color.color)data
else return "header-default"
end