Module:Navbar/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
use Module:Arguments to, among other things, support both direct args and parent args
Jackmcbarn (talk | contribs)
export _navbar so other modules can save the call to Module:Arguments
Line 39:
end
 
local function p._navbar( args )
local good, title, talk_title;
good, title, talk_title = pcall( getTitle, args[1] or (':' .. mw.getCurrentFrame():getParent():getTitle()));
Line 138:
getArgs = require('Module:Arguments').getArgs
end
return p._navbar(getArgs(frame))
end