Open main menu

Changes

Module:Navbar

290 bytes removed, 21:07, 24 November 2014
remove obnoxious pcall-and-rethrow behavior, now that real script errors include details
local function trim(s)
return mw.ustring.match(s, "^%s*(.-)%s*$")
end
 
local function htmlError(s)
local span = HtmlBuilder.create('span')
 
span
.addClass('error')
.css('float', 'left')
.css('white-space', 'nowrap')
.wikitext('Error: ' .. s)
 
return tostring(span)
end
function p._navbar(args)
local good, title, talk_title;
local titleArg = 1
end
good, title, talk_title = pcallgetTitle(getTitle, args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle())); if not good then return htmlError(title); end
if not title then
return htmlErrorerror('Page does not exist')
end
Anonymous user