Module:Infobox road
Revision as of 15:25, 20 November 2013 by test>Mr. Stradivarius (Protected Module:Infobox road: High-risk Lua module: 17,000 transclusions ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
Documentation for this module may be created at Module:Infobox road/doc
local p = {}
function p.headerStyle(frame)
local pframe = frame:getParent()
local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template
local deleted = args.decommissioned or args.deleted or ''
if deleted ~= '' then
return "background:#AAA;"
end
local colors = require"Module:Infobox road/color"
return colors.color(frame)
end
return p