Module:Description/formesSpéciales/Pokémon GO
Aller à la navigation
Aller à la recherche
Ce module est un sous-module du Module:Description, qui permet de gérer l'affichage du nom des formes et costumes de Pokémon spécifiques à Pokémon GO.
return function(ndex, name, form, special_form_name, info_indix_beginning, info_indix_end) local has_form = info_indix_beginning <= info_indix_end local name_prefix = "" local name_suffix = "" local special_form_as_name_suffix = true local name_category = name local form_between_commas = "" local switch_go = { ["0001"] = function() -- Bulbizarre if has_form then if form == "Munja" then special_form_name = " vêtu d'un costume de" special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Visière" then special_form_name = " avec une visière" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0003"] = function() -- Florizarre if form == "Cloné" then special_form_name = " cloné" info_indix_beginning = info_indix_end + 1 return true end end, ["0004"] = function() -- Salamèche if has_form then if form == "Osselait" then special_form_name = " au costume d'Osselait" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Visière" then special_form_name = " avec une visière" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0005"] = function() -- Reptincel if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0006"] = function() -- Dracaufeu if has_form then if form == "Cloné" then special_form_name = " cloné" info_indix_beginning = info_indix_end + 1 return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0007"] = function() -- Carapuce if has_form then if form == "Tutafeh" then special_form_name = " à la tenue de" special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form == "Chapeau de fête" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Lunettes" then special_form_name = " portant des lunettes" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Visière" then special_form_name = " avec une visière" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0008"] = function() -- Carabaffe if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Lunettes" then special_form_name = " portant des lunettes" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0009"] = function() -- Tortank if has_form then if form == "Cloné" then special_form_name = " cloné" info_indix_beginning = info_indix_end + 1 return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Lunettes" then special_form_name = " portant des lunettes" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0012"] = function() -- Papilusion if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0020"] = function() -- Rattatac if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0025"] = function() -- Pikachu if has_form then if form == "Mimiqui" then special_form_name = " vêtu d'un costume de" special_form_as_name_suffix = false return true end if form == "Dracaufeu" or form == "Lucario" or form == "Noctali" or form == "Rayquaza" then special_form_name = " portant un chapeau de" special_form_as_name_suffix = false return true end if form == "Béret de Louka" then special_form_name = " coiffé du béret" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Bonnet" then special_form_name = " portant un bonnet" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Bonnet d'Aurore" then special_form_name = " coiffé du bonnet" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Casquette de détective (2019)" or form == "Casquette de détective (2023)" then special_form_name = " coiffé d'une casquette" info_indix_beginning = info_indix_beginning + 1 info_indix_end = info_indix_end - 1 -- retrait de l'année special_form_as_name_suffix = false return true end if form == "Casquette d'Aurel" then special_form_name = " coiffé de la casquette" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Casquette de Cap" then special_form_name = " portant la casquette" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Chapeau de Brice" then special_form_name = " coiffé du chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Chapeau de paille" then special_form_name = " à chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Chapeau festif" or form == "Chapeau du JCC Pokémon" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Chapeau Meloetta" then special_form_name = " portant un chapeau inspiré de Meloetta" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau Nouvel An" then special_form_name = " et son chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Chenapan d'Halloween" then -- name_prefix = form .. " - " -- info_indix_beginning = info_indix_end + 1 special_form_name = " portant un costume" special_form_as_name_suffix = false return true end if form == "Cloné" then special_form_name = " cloné" info_indix_beginning = info_indix_end + 1 return true end if form == "Costume gâteau" or form == "Explorateur" then special_form_name = "" return true end if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Détective" then special_form_name = " coiffé d'une casquette de détective" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Écharpe Shaymin" then special_form_name = " portant une écharpe inspirée de Shaymin" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Foulard de Lucia" then special_form_name = " coiffé du foulard" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Gâteau" then special_form_name = " coiffé d'un gâteau" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Gracidée" then special_form_name = " couronné de fleurs de" special_form_as_name_suffix = false return true end if form == "Halloween" then special_form_name = " d'Halloween" info_indix_beginning = info_indix_end + 1 return true end if form == "Ruban de Flora" then special_form_name = " coiffé du ruban" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Safari" then special_form_name = " coiffé d'un chapeau de safari" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_words = mw.text.split(form, " ") local form_first_word = form_words[1] if form_first_word == "Championnats" then special_form_name = "" return true end if form_first_word == "Chemise" then special_form_name = " portant une chemise" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Coiffé" then special_form_name = " coiffé" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Couronne" then special_form_name = " coiffé d'une couronne" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Déguisement" then special_form_name = " portant un déguisement" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Ensemble" then special_form_name = " portant un ensemble" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "T-shirt" then special_form_name = " avec un T-shirt" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Style" then special_form_name = " de style" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Volant" then name = name .. " " .. form_first_word name_category = name if form_words[2] == "ballons" then special_form_name = " avec des ballons" elseif form_words[2] == "ballon" then special_form_name = " avec un ballon" else info_indix_beginning = info_indix_beginning - 1 end special_form_as_name_suffix = false info_indix_beginning = info_indix_beginning + 2 return true end local i = 1 while form_words[i] do i = i + 1 end local last_word = form_words[i-1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false -- parenthèses du chapeau de fête if last_word:sub(1, 1) == "(" then info_indix_end = info_indix_end - 1 end return true end end end, ["0026"] = function() -- Raichu if has_form then if form == "Bonnet" then special_form_name = " portant un bonnet" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Casquette de détective" or form == "Casquette de détective (2019)" then special_form_name = " coiffé d'une casquette" info_indix_beginning = info_indix_beginning + 1 if form ~= "Casquette de détective" then info_indix_end = info_indix_end - 1 -- retrait de l'année end special_form_as_name_suffix = false return true end if form == "Chapeau festif" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Chapeau Nouvel An" then special_form_name = " et son chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Détective" then special_form_name = " coiffé d'une casquette de détective" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Halloween" then special_form_name = " d'Halloween" info_indix_beginning = info_indix_end + 1 return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Casquette" then special_form_name = " à" return true end if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Style" then special_form_name = " de style" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0033"] = function() -- Nidorino if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0037"] = function() -- Goupix if has_form then if form == "Festival effrayant" then special_form_name = " portant un costume du" special_form_as_name_suffix = false return true end end end, ["0038"] = function() -- Feunard if has_form then if form == "Festival effrayant" then special_form_name = " portant un costume du" special_form_as_name_suffix = false return true end end end, ["0039"] = function() -- Rondoudou if has_form then if form == "Ruban" then special_form_name = " portant un ruban" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0040"] = function() -- Grodoudou if has_form then if form == "Ruban" then special_form_name = " portant un ruban" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0050"] = function() -- Taupiqueur if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0051"] = function() -- Triopikeur if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0054"] = function() -- Psykokwak if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0055"] = function() -- Akwakwak if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0077"] = function() -- Ponyta if has_form then if form == "Chapeau Meloetta" then special_form_name = " portant un chapeau inspiré de Meloetta" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Accessoire" then special_form_name = " portant un accessoire" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0078"] = function() -- Galopa if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Accessoire" then special_form_name = " portant un accessoire" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0079"] = function() -- Ramoloss if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Lunettes" then special_form_name = " et ses lunettes" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0080"] = function() -- Flagadoss if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Lunettes" then special_form_name = " et ses lunettes" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0094"] = function() -- Ectoplasma if has_form then if form == "Méga-Branette" then special_form_name = " déguisé en" special_form_as_name_suffix = false return true end if form == "Festival effrayant" then special_form_name = " portant un costume du" special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Déguisement" then special_form_name = " portant un déguisement" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0104"] = function() -- Osselait if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Couronne" then special_form_name = " coiffé d'une couronne" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0105"] = function() -- Ossatueur if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Couronne" then special_form_name = " coiffé d'une couronne" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0113"] = function() -- Leveinard if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0125"] = function() -- Élektek if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Accessoire" then special_form_name = " portant un accessoire" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0131"] = function() -- Lokhlass if has_form then if form == "Écharpe" then special_form_name = " portant une écharpe" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Accessoire" then special_form_name = " portant un accessoire" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0133"] = function() -- Évoli if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau de fête" then special_form_name = " coiffé d'un chapeau de fête" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0134"] = function() -- Aquali if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0135"] = function() -- Voltali if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0136"] = function() -- Pyroli if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0142"] = function() -- Ptéra if has_form then if form == "Sac" then special_form_name = " portant un sac" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0143"] = function() -- Ronflex if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Bonnet" then special_form_name = " portant un bonnet" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0149"] = function() -- Dracolosse if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0163"] = function() -- Hoothoot if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0164"] = function() -- Noarfang if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0172"] = function() -- Pichu if has_form then if form == "Anniversaire" then special_form_name = " d'anniversaire" info_indix_beginning = info_indix_end + 1 return true end if form == "Bonnet" then special_form_name = " portant un bonnet" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau festif" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Chapeau Nouvel An" then special_form_name = " et son chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Halloween" then special_form_name = " d'Halloween" info_indix_beginning = info_indix_end + 1 return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Casquette" then special_form_name = " à" return true end if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Style" then special_form_name = " de style" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0175"] = function() -- Togepi if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0176"] = function() -- Togetic if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0194"] = function() -- Axoloto if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0195"] = function() -- Maraiste if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0196"] = function() -- Mentali if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0197"] = function() -- Noctali if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0199"] = function() -- Roigada if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Lunettes" then special_form_name = " et ses lunettes" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0202"] = function() -- Qulbutoké if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0215"] = function() -- Farfuret if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0225"] = function() -- Cadoizo if has_form then if form == "Festif" then special_form_name = " festif" info_indix_beginning = info_indix_end + 1 return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Ruban" then special_form_name = " portant un ruban" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0234"] = function() -- Cerfrousse if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0238"] = function() -- Lippouti if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0239"] = function() -- Élekid if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Accessoire" then special_form_name = " portant un accessoire" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0242"] = function() -- Leuphorie if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0249"] = function() -- Lugia if has_form then if form == "Apex" then special_form_name = " Apex" info_indix_beginning = info_indix_end + 1 return true end end end, ["0250"] = function() -- Ho-Oh if has_form then if form == "Apex" then special_form_name = " Apex" info_indix_beginning = info_indix_end + 1 return true end end end, ["0263"] = function() -- Zigzaton if has_form then if form == "Chapeau Meloetta" then special_form_name = " portant un chapeau inspiré de Meloetta" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0265"] = function() -- Chenipotte if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " coiffé d'un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0281"] = function() -- Kirlia if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0282"] = function() -- Gardevoir if has_form then if form == "Chapeau Meloetta" then special_form_name = " portant un chapeau inspiré de Meloetta" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0302"] = function() -- Ténéfix if has_form then if form == "Funécire" then special_form_name = " déguisé en" special_form_as_name_suffix = false return true end end end, ["0330"] = function() -- Libégon if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " et son chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0355"] = function() -- Skelénox if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Couronne" then special_form_name = " portant une couronne" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0356"] = function() -- Téraclope if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Couronne" then special_form_name = " portant une couronne" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0359"] = function() -- Absol if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0363"] = function() -- Obalie if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Écharpe" then special_form_name = " portant une écharpe" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0387"] = function() -- Tortipouss if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " avec le chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0390"] = function() -- Ouisticram if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " avec le chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0393"] = function() -- Tiplouf if has_form then if form == "Chenapan d'Halloween" then -- name_prefix = form .. " - " -- info_indix_beginning = info_indix_end + 1 special_form_name = " portant un costume" special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " avec le chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0403"] = function() -- Lixy if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0426"] = function() -- Grodrive if has_form then if form == "Chenapan d'Halloween" then -- name_prefix = form .. " - " -- info_indix_beginning = info_indix_end + 1 special_form_name = " portant un costume" special_form_as_name_suffix = false return true end end end, ["0427"] = function() -- Laporeille if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0428"] = function() -- Lockpin if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0440"] = function() -- Ptiravi if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0453"] = function() -- Cradopaud if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0454"] = function() -- Coatox if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0466"] = function() -- Élekable if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Accessoire" then special_form_name = " portant un accessoire" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0468"] = function() -- Togekiss if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0470"] = function() -- Phyllali if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0471"] = function() -- Givrali if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end if form_first_word == "Tenue" then special_form_name = " portant une tenue" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0477"] = function() -- Noctunoir if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Couronne" then special_form_name = " portant une couronne" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0522"] = function() -- Zébibron if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Costume" then special_form_name = " avec un costume" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0546"] = function() -- Doudouvet if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0547"] = function() -- Farfaduvet if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end end end, ["0613"] = function() -- Polarhume if has_form then if form == "Festif" then special_form_name = " festif" info_indix_beginning = info_indix_end + 1 return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Ruban" then special_form_name = " portant un ruban" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0614"] = function() -- Polagriffe if has_form then local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Ruban" then special_form_name = " portant un ruban" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0700"] = function() -- Nymphali if has_form then if form == "Couronne de fleurs" then special_form_name = " portant une couronne de fleurs" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Fleurs de cerisier" then special_form_name = " orné de fleurs de cerisier" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end if form == "Chapeau d'explorateur" then special_form_name = " coiffé d'un chapeau d'explorateur" info_indix_beginning = info_indix_end + 1 special_form_as_name_suffix = false return true end local form_first_word = mw.text.split(form, " ")[1] if form_first_word == "Chapeau" then special_form_name = " portant un chapeau" info_indix_beginning = info_indix_beginning + 1 special_form_as_name_suffix = false return true end end end, ["0710"] = function() -- Pitrouille if has_form then local form_split = mw.text.split(form, " ") local size = form_split[1] local form_first_word = form_split[2] local form = form_first_word local i = 3 while form_split[i] do form = form .. " " .. form_split[i] i = i + 1 end if form == "Festival effrayant" then name_suffix = special_form_name .. " " .. size special_form_name = " portant un costume du" special_form_as_name_suffix = false info_indix_beginning = info_indix_beginning + 1 return true end end end, ["0711"] = function() -- Banshitrouye if has_form then local form_split = mw.text.split(form, " ") local size = form_split[1] local form_first_word = form_split[2] local form = form_first_word local i = 3 while form_split[i] do form = form .. " " .. form_split[i] i = i + 1 end if form == "Festival effrayant" then name_suffix = special_form_name .. " " .. size special_form_name = " portant un costume du" special_form_as_name_suffix = false info_indix_beginning = info_indix_beginning + 1 return true end end end } local has_found_special_form = false local f = switch_go[ndex] if f then has_found_special_form = f() -- f() has border effects has_found_special_form = has_found_special_form == true end return { ["form_between_commas"] = form_between_commas, ["has_found_special_form"] = has_found_special_form, ["info_indix_beginning"] = info_indix_beginning, ["info_indix_end"] = info_indix_end, ["name"] = name, ["name_category"] = name_category, ["name_prefix"] = name_prefix, ["name_suffix"] = name_suffix, ["special_form_name"] = special_form_name, ["special_form_as_name_suffix"] = special_form_as_name_suffix } end