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

Aller à la navigation Aller à la recherche
15 octets ajoutés ,  13 août 2022 à 10:04
aucun résumé de modification
Ligne 27 : Ligne 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
1 124

modifications

Menu de navigation