Module:Navbox

local p = {}

function p.list (frame) -- items organized in an inline-list style local c1, c2, c3, collapse c1 = frame.args["color1"] -- background color c2 = frame.args["color2"] -- title bg color c3 = frame.args["color3"] -- border and section items color collapse = frame.args["expand"] if collapse ~= nil or "collapse" or "collapsible" or "collapsed" then collapse = "collapsed" else collapse = "expanded" end local title = frame.args[1] local items = frame.args[2] if items ~= nil then items = mw.text.split(items, "\n") else items = {} end local result = {} table.insert(result, ' '.. title ..'  ') return table.concat(result, '') end

function p.autolink (frame) -- automatic links local c1, c2, c3, collapse c1 = frame.args["color1"] -- background color c2 = frame.args["color2"] -- title bg color c3 = frame.args["color3"] -- border and section items color collapse = frame.args["expand"] if collapse ~= nil or "collapse" or "collapsible" or "collapsed" then collapse = "collapsed" else collapse = "expanded" end local title = frame.args[1] local items = frame.args[2] if items ~= nil then items = mw.text.split(items, "\n") else items = {} end local result = {} table.insert(result, ' '.. title ..'  ') return table.concat(result, '') end

return p