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

Contenu supprimé Contenu ajouté
rédaction
rédaction
Ligne 406 :
if precede.exists then
local texte_precede = precede.getContent(precede)
local numero_precedent = modele(texte_precede,"Exercice"type_page,"numéro")
if (numero_precedent == nil) or (tonumber(numero_precedent) ~= nil) then
if (numero_precedent ~= nil) and (model.args["numéro"] - numero_precedent ~= 1) then --La page courante ne suit pas la page précédent
Ligne 425 :
if suit.exists then
local texte_suit = suit.getContent(suit)
local numero_suivant = modele(texte_suit,"Exercice"type_page,"numéro")
if (numero_suivant == nil) or (tonumber(numero_suivant) ~= nil) then
if (numero_suivant ~= nil) and (numero_suivant - model.args["numéro"] ~= 1) then -- La page suivante ne suit pas la page courante