Module:Documentation: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
convert a stray message name
don't use title error message
Line 195: Line 195:
if titleArg then
if titleArg then
title = mw.title.new(titleArg)
title = mw.title.new(titleArg)
if not title then
error(message('title-arg-error', {titleArg}))
end
else
else
title = mw.title.getCurrentTitle()
title = mw.title.getCurrentTitle()