« Module:Maintenance » : différence entre les versions

Contenu supprimé Contenu ajouté
correction indentation
Ligne 91 :
local texte_sommaire = sommaire.getContent(sommaire) -- Lit le sommaire
local nature
if texte_sommaire ~= nil then
if mw.ustring.find(texte_sommaire,"{{Leçon") then
nature = "Leçon"
else
if mw.ustring.find(texte_sommaire,"{{Recherche") then
nature = "Recherche"
end
end
end
end
if nature then -- Maintenance liée au sommaire