Module:Navbox

local p = {}

function p.list (frame) local c1, c2, collapse c1 = frame.args["bg"] or "#429fff"-- background color c2 = frame.args["text"] or "#000" -- text color collapse = frame.args["expand"] if collapse ~= nil then collapse = "mw-collapsed" else collapse = "" 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) local c1, c2, collapse c1 = frame.args["bg"] or "#429fff" -- background color c2 = frame.args["text"] or "#000" -- text color collapse = frame.args["expand"] if collapse ~= nil then collapse = "mw-collapsed" else collapse = "" 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