1,124
edits
Line 27: | Line 27: | ||
function com.modulePagename(title) | function com.modulePagename(title) | ||
if title | 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 |