Module:NavboxMobile: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 195: | Line 195: | ||
-- Function to render the navigation bar | -- Function to render the navigation bar | ||
local function renderNavBar(cell) | local function renderNavBar(cell) | ||
if args.navbar == 'off' then | if args.navbar == 'off' then | ||
return -- Don't render anything if Navbar is off | |||
end | end | ||
-- Render the Navbar | |||
cell:wikitext(navbar{ | |||
args.name, | |||
mini = 1, | |||
fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') .. ';background:none transparent;border:none;' | |||
}) | |||
end | end | ||
-- | -- |