Zum Inhalt springen

Modul:Navbar: Unterschied zwischen den Versionen

rem unneeded tabs/spacing for more unified importing/exporting
(switch to mw.html and other cleanup from sandbox)
(rem unneeded tabs/spacing for more unified importing/exporting)
Zeile 5: Zeile 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
Zeile 16: Zeile 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');
Zeile 97: Zeile 97:
:newline();
:newline();
end
end
 
if args.collapsible then
if args.collapsible then
div
div
Anonymer Benutzer