Module:Navbar: Difference between revisions
rem unneeded tabs/spacing for more unified importing/exporting
m>Jackmcbarn (switch to mw.html and other cleanup from sandbox) |
m>George Orwell III (rem unneeded tabs/spacing for more unified importing/exporting) |
||
Line 5: | Line 5: | ||
function p._navbar(args) | function p._navbar(args) | ||
local titleArg = 1 | local titleArg = 1 | ||
if args.collapsible then | if args.collapsible then | ||
titleArg = 2 | titleArg = 2 | ||
Line 16: | Line 16: | ||
args.style = 'float:left; text-align:left; width:6em;' | args.style = 'float:left; text-align:left; width:6em;' | ||
end | end | ||
local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle()) | local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle()) | ||
local title = mw.title.new(mw.text.trim(titleText), 'Template'); | local title = mw.title.new(mw.text.trim(titleText), 'Template'); | ||
Line 97: | Line 97: | ||
:newline(); | :newline(); | ||
end | end | ||
if args.collapsible then | if args.collapsible then | ||
div | div |