43 001
modifications
(Ajout de la couleur qui manquait pour les articles de Pokémon spéciaux (Kyurem Blanc, Sylveroy, le Cavalier du Froid...)) |
mAucun résumé des modifications |
||
Ligne 66 : | Ligne 66 : | ||
then local data_types = require("Module:Data/TypesPokémon") | then local data_types = require("Module:Data/TypesPokémon") | ||
local skip = false | local skip = false | ||
-- special replacements | |||
for replacing, replaced in pairs(special_replacement_ids) do | for replacing, replaced in pairs(special_replacement_ids) do | ||
if pokemon == replacing | if pokemon == replacing | ||
then pokemon_types = data_types[ | then local pokemon_types = data_types[replaced[0]] | ||
local form = replaced[1] | |||
if pokemon_types | if pokemon_types | ||
then local pokemon_types_form = pokemon_types[form] | |||
if pokemon_types_form | |||
then pokemon_type = pokemon_types_form[1] | |||
else pokemon_type = pokemon_types[1][1] | |||
end | end | ||
skip = true | |||
else pokemon_type = "" | |||
end | |||
break | break | ||
end | end | ||
end | end | ||
-- regular replacements | |||
if not skip | if not skip | ||
then | then |