Module:UtilsLayout/Navbox

local p = {}

function p.CreateNavbox(content, title) result = mw.html.create("div") :addClass("navbox mw-collapsible mw-collapsed") :node(mw.html.create("div")			:addClass("navbox-title")			:wikitext("" .. title .. " in " .. mw.getCurrentFrame:expandTemplate{ title = "TLoZ", args = { "Series" } })) :node(mw.html.create("div")			:addClass("navbox-links mw-collapsible-content")			:wikitext(content)) return tostring(result) end

function p.CreateFormattedNavbox(links, title) linksString = "" firstLink = true for key, link in ipairs(links) do		if firstLink == true then linksString = "" .. link .. "" else linksString = linksString .. " * " .. link .. "" end end return p.CreateNavbox(linksString, title) end return p