Difference between revisions of "Module:Common"

Jump to navigation Jump to search
15 bytes added ,  10:04, 13 August 2022
no edit summary
Line 27: Line 27:
function com.modulePagename(title)
function com.modulePagename(title)
if title == nil then
if not title then
title = mw.title.getCurrentTitle()
title = mw.title.getCurrentTitle().text
end
end
mw.log(title)
local disambig = string.find(title, '%(')
local disambig = string.find(title, '%(')
if string.sub(title, string.len(title)) == '%)' then
if string.sub(title, string.len(title)) == '%)' then

Navigation menu