Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
split has_navbar() into its own function, add templatestyles
Tag: Reverted
heh, shadowing
Tag: Reverted
Line 381:
end
 
local function templatestylesadd_templatestyles(frame, templatestyles)
if templatestyles and templatestyles ~= '' then
return frame:extensionTag{
Line 412:
-- get templatestyles
local frame = mw.getCurrentFrame()
local base_templatestyles = templatestylesadd_templatestyles(frame, 'Module:Navbox/styles.css')
local templatestyles = templatestylesadd_templatestyles(frame, args[cfg.arg.templatestyles])
local child_templatestyles = templatestylesadd_templatestyles(frame, args[cfg.arg.child_templatestyles])
 
local res = mw.html.create()