Modification de Module:Tableau Pokémon
La modification peut être annulée. Veuillez vérifier les différences ci-dessous pour voir si c’est bien ce que vous voulez faire, puis publier ces changements pour finaliser l’annulation de cette modification.
Version actuelle | Votre texte | ||
Ligne 560 : | Ligne 560 : | ||
local rowspan_blocs = rowspan_ligne | local rowspan_blocs = rowspan_ligne | ||
local rowspan_attente = rowspan_ligne | local rowspan_attente = rowspan_ligne | ||
local extending_blocs_beginning = | local extending_blocs_beginning = blocs_unsplit == blocs_pred | ||
local extending_attente_beginning = | local extending_attente_beginning = attente == attente_pred | ||
if not | if h == 2 or not extending_blocs_beginning or not extending_attente_beginning | ||
then | then | ||
local hh = h + 1 | local hh = h + 1 | ||
local extending_blocs = extending_blocs_beginning | local extending_blocs = not extending_blocs_beginning | ||
local extending_attente = extending_attente_beginning | local extending_attente = not extending_attente_beginning | ||
while poke[hh] do | while poke[hh] do | ||
local blocs_next = extract_argument("blocs", poke[hh], "—") | local blocs_next = extract_argument("blocs", poke[hh], "—") | ||
if | if extending_blocs and blocs_next == blocs_unsplit | ||
then rowspan_blocs = rowspan_blocs + rowspan_lignes[hh] | then rowspan_blocs = rowspan_blocs + rowspan_lignes[hh] | ||
else extending_blocs = true | else extending_blocs = true | ||
end | end | ||
if | if extending_attente | ||
then if blocs_next ~= "—" then attente_default = "Immédiatement" else attente_default = "—" end | then if blocs_next ~= "—" then attente_default = "Immédiatement" else attente_default = "—" end | ||
local attente_next = extract_argument("attente", poke[hh], attente_default) | local attente_next = extract_argument("attente", poke[hh], attente_default) | ||
Ligne 592 : | Ligne 592 : | ||
end | end | ||
if extending_blocs and extending_attente then break end | if not extending_blocs and not extending_attente then break end | ||
hh = hh + 1 | hh = hh + 1 | ||
end | end |