Modification de Module:Ressources/infosPokemon
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 9 : | Ligne 9 : | ||
if ( string.match(poke, "sexe%([^)]*%)") ) then | if ( string.match(poke, "sexe%([^)]*%)") ) then | ||
sexe = string.sub(string.match(poke, "sexe%([^)]*%)"), 6, -2) | sexe = string.sub(string.match(poke, "sexe%([^)]*%)"), 6, -2) | ||
if sexe == "f" then sexe = " ♀" else sexe = " ♂" end | if sexe == "f" then | ||
sexe = " ♀" | |||
nom = "Femelle" | |||
else | |||
sexe = " ♂" | |||
nom = "Mâle" | |||
end | |||
poke = string.gsub( poke, "sexe%([^)]*%)", "" ) | poke = string.gsub( poke, "sexe%([^)]*%)", "" ) | ||
else sexe = "" end | else sexe = "" end | ||
Ligne 46 : | Ligne 52 : | ||
poke = string.gsub( poke, "nom%([^)]*%)", "" ) | poke = string.gsub( poke, "nom%([^)]*%)", "" ) | ||
elseif forme ~= "" then nom = "Forme" .. forme | elseif forme ~= "" then nom = "Forme" .. forme | ||
else nom = "" end | else nom = "" end | ||
if ( string.match(poke, "lien%([^)]*%)") ) then | if ( string.match(poke, "lien%([^)]*%)") ) then |