Module:Nav

--This module is invoked by Template:Nav

local p = {} local getArgs = require('Module:Arguments').getArgs

function setDefault(arg) if(arg == nil) then arg = '' end return arg end

function p.main(frame) return p._main(getArgs(frame)) end

function p._main(args) local out, border, templink, class, style, styleFE, headerFE -- Initialize args border = '#999' templink = 'Nav' class = setDefault(args.class) style = setDefault(args.style) styleFE = setDefault(args.styleFE) headerFE = setDefault(args.headerFE) -- Final output out = '{|class="collapsible collapsed" cellspacing=2 cellpadding=0 '.. 'style="width: 100%; text-align:center; font-family: times; border:2px solid '..border..'"'.. '|}'   return out end

return p --