Différences entre les versions de « Module:Common »

Aller à la navigation Aller à la recherche
186 octets supprimés ,  7 février 2024 à 18:58
aucun résumé de modification
Ligne 32 : Ligne 32 :
mw.log(title)
mw.log(title)
local disambig = string.find(title, '%(')
local disambig = string.find(title, '%(')
if string.sub(title, string.len(title)) == '%)' then
if disambig then
local check = disambig
title = title:gsub('(.*)%(.-%)', '%1')
while check do
local check = string.find(title, '%(', check + 1)
if check ~= 0 then
disambig = check
end
end
end
end
title = string.sub(title, 1, disambig)
return title
return title
end
end
1 124

modifications

Menu de navigation