Module:Infobox road/abbrev
Appearance
Documentation for this module may be created at Module:Infobox road/abbrev/doc
local p = {}
local format = mw.ustring.format
local abbrevs = {}
do
function abbrevs:abbr(args)
return "Not yet implemented"
end
end
p.abbreviations = abbrevs
function p._abbr(args)
abbrevs:abbr(args)
end
function p.abbr(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 country = args.country or config.country
local type = args.type or config.type
local state = args.state or config.state
local province = args.province or config.province
local route = args.route or config.route
local county = args.county or config.county
local dab = args.dab or config.dab
return p._abbr{country=country, type=type, state=state, province=province, route=route, county=county, dab=dab}
end
return p