Module:Navbar: Difference between revisions

match ought to be marginally faster
(If the documentation is accurate, this will use the namespace part of pageName first and fallback to Template if one isn't present, which is what we want.)
(match ought to be marginally faster)
Line 4:
 
function trim(s)
return (mw.ustring.gsubmatch( s, "^%s*(.-)%s*$", "%1"))
end
 
Anonymous user