Module:Gutenberg: Difference between revisions

Content deleted Content added
m Protected "Module:Gutenberg": High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
fix bad gsub syntax
Line 29:
name = trimArg(args[2]) or trimArg(args.name)
if not name then
name = mw.title.getCurrentTitle().text.:gsub('%s+%([^%(]-%)$', '') -- Current page name without the final parentheses
end