Differenze tra le versioni di "Modulo:UselessForms/data"

Vai alla navigazione Vai alla ricerca
Moving Gigamax to AltForms, adding Alcremie forms *** sovrascritto il testo esistente ***
(Fixing some bugs of Evobox *** sovrascritto il testo esistente ***)
(Moving Gigamax to AltForms, adding Alcremie forms *** sovrascritto il testo esistente ***)
local txt = require('Modulo:Wikilib/strings') -- luacheck: no unused
local tab = require('Modulo:Wikilib/tables') -- luacheck: no unused
 
-- Creates link to alternative forms in list pointing to target instead of
-- "Differenze di forma"
local makeTargetedLink = function(linkstr, index, target, list)
linkstr = linkstr:gsub('Differenze di forma', target)
for _, poke in pairs(list) do
t[poke][index] = table.map(t[poke].names, function(formName)
return formName == ''
and ''
or string.interp(linkstr, {
anchor = t[poke].anchor or string.fu(poke),
formName = formName
})
end)
end
end
 
-- Creates links to alternative forms
local index = black and 'blacklinks' or 'links'
 
for name, poke in pairs(t) do
local stdLinks = table.filter(t, function(_, key)
return not table.search({'gigamax'}, key)
and not table.search(t.gigamax, key)
end)
 
for name, poke in pairs(stdLinks) do
poke[index] = table.map(poke.names, function(formName)
return formName == ''
end)
end
 
-- Link of forms with a dedicated page instead of "Differenze di forma"
makeTargetedLink(link, index, 'Gigamax', t.gigamax)
end
 
t.sinistea = {}
t.alcremie = {}
t.urshifu = {}
 
-- Table with Pokémon with a Gigamax
 
t.gigamax = {'venusaur', 'charizard', 'blastoise', 'butterfree', 'meowth',
'machamp', 'gengar', 'kingler', 'lapras', 'eevee', 'snorlax', 'garbodor',
'melmetal', 'rillaboom', 'cinderace', 'inteleon', 'corviknight', 'orbeetle',
'drednaw', 'coalossal', 'flapple', 'appletun', 'sandaconda', 'toxtricity',
'centiskorch', 'hatterene', 'grimmsnarl', 'copperajah', 'duraludon'}
 
--[[
Si = 'Berretto Sinnoh', U = 'Berretto Unima',
K = 'Berretto Kalos', A = 'Berretto Alola',
Co = 'Berretto Compagni', Gi = 'Pikachu Gigamax', base = ''}
t.pichu.names = {S = 'Pichu Spunzorek', base = ''}
t.unown.names = {base = 'A', B = 'B', C = 'C', D = 'D', E = 'E', F = 'F',
t.cramorant.names = {T = "Forma Inghiottitutto", I = "Forma Inghiottintero", base = ""}
t.sinistea.names = {base = "Forma Contraffatta", A = "Forma Autentica"}
-- Alcremie is quite molesto in **** (censored for the sake of poor childen who browse our site)
t.alcremie.names = {base = "Lattevaniglia", R = "Latterosa", Ma = "Lattematcha",
do
Me = "Lattementa", L = "Lattelimone", S = "Lattesale", Rm = "Rosamix",
Cmlocal flavours = {Lv = "CaramelmixLattevaniglia", TmR = "TriplomixLatterosa", GiMa = "Alcremie GigamaxLattematcha"},
Me = "Lattementa", L = "Lattelimone", S = "Lattesale", Rm = "Rosamix",
t.urshifu.names = {Gi = "Urshifu Gigamax (Stile Singolcolpo)", PGi = "Urshifu Gigamax (Stile Pluricolpo)", base = "Stile Singolcolpo"}
Cm = "Caramelmix", Tm = "Triplomix"}
for _, v in pairs(t.gigamax) do
local decorations = {Fa = "Bonbonfragola", C = "Bonboncuore",
t[v] = {}
B = "Bonbonbosco", Fo = "Bonbonfoglio", Fe = "Bonbonfiore",
t[v].names = {Gi = string.fu(v) .. " Gigamax", base = ""}
S = "Bonbonstella", Fc = "Bonbonfiocco"}
 
t.alcremie.names = {base = "Lattevaniglia Bonbonfragola"}
for flav, flavname in pairs(flavours) do
for dec, decname in pairs(decorations) do
t.alcremie.names[flav .. dec] = table.concat{flavname, " ", decname}
end
end
t.alcremie.names["LvFa"] = nil
end
-- Here to overwirte the loop
t.toxtricity.names.base = "Forma Melodia"
 
-- Anchor per i link alle forme alternative,
 
t.pikachu.ext = {originale = 'O', hoenn = 'H', sinnoh = 'Si',
unima = 'U', kalos = 'K', alola = 'A', compagni = 'Co', gigamax = 'Gi'}
t.pichu.ext = {spunzorek = 'S'}
t.unown.ext = {base = 'A', B = 'B', C = 'C', D = 'D', E = 'E', F = 'F',
t.alcremie.ext = {lattevaniglia = 'base', latterosa = 'R', lattematcha = 'Ma',
lattementa = 'Me', lattelimone = 'L', lattesale = 'S', rosamix = 'Rm',
caramelmix = 'Cm', triplomix = 'Tm', gigamax = 'Gi'}
t.urshifu.ext = {gigamax = "Gi"}
for _, v in pairs(t.gigamax) do
t[v].ext = {gigamax = "Gi"}
end
 
--[[
t.cramorant.gamesOrder = {'base', 'T', 'I'}
t.sinistea.gamesOrder = {'base', 'A'}
-- Alcremie's gamesOrder is filled below, with since
t.alcremie.gamesOrder = {'base', 'R', 'Ma', 'Me', 'L', 'S', 'Rm', 'Cm', 'Tm' , 'Gi'}
t.urshifu.gamesOrder = {"base", "Gi", "GiP"}
for _, v in pairs(t.gigamax) do
t[v].gamesOrder = {"base", "Gi"}
end
 
--[[
--]]
 
t.venusaur.since = {base = 'rb', Gi = 'spsc'}
t.charizard.since = {base = 'rb', Gi = 'spsc'}
t.blastoise.since = {base = 'rb', Gi = 'spsc'}
t.butterfree.since = {base = 'rb', Gi = 'spsc'}
t.pikachu.since = {O = 'sl', H = 'sl', Si = 'sl', U = 'sl',
K = 'sl', A = 'sl', Co = 'usul', Gi = 'spsc', base = 'rb'}
t.meowth.since = {base = 'rb', Gi = 'spsc'}
t.machamp.since = {base = 'rb', Gi = 'spsc'}
t.gengar.since = {base = 'rb', Gi = 'spsc'}
t.kingler.since = {base = 'rb', Gi = 'spsc'}
t.lapras.since = {base = 'rb', Gi = 'spsc'}
t.eevee.since = {base = 'rb', Gi = 'spsc'}
t.snorlax.since = {base = 'rb', Gi = 'spsc'}
t.pichu.since = {S = 'hgss', base = 'oa'}
t.unown.since = {base = 'oa', B = 'oa', C = 'oa', D = 'oa', E = 'oa', F = 'oa',
t.shellos.since = {E = 'dp', base = 'dp'}
t.unfezant.since = {F = 'nb', base = 'nb'}
t.garbodor.since = {base = 'nb', Gi = 'spsc'}
t.deerling.since = {E = 'nb', A = 'nb', I = 'nb', base = 'nb'}
t.frillish.since = t.unfezant.since
Az = 'sl', I = 'sl', Vi = 'sl'}
t.mimikyu.since = {base = 'sl', S = 'sl'}
t.melmetal.since = {base = 'lgpe', Gi = 'spsc'}
t.rillaboom.since = {base = 'spsc', Gi = 'spsc'}
t.cinderace.since = {base = 'spsc', Gi = 'spsc'}
t.inteleon.since = {base = 'spsc', Gi = 'spsc'}
t.corviknight.since = {base = 'spsc', Gi = 'spsc'}
t.orbeetle.since = {base = 'spsc', Gi = 'spsc'}
t.drednaw.since = {base = 'spsc', Gi = 'spsc'}
t.coalossal.since = {base = 'spsc', Gi = 'spsc'}
t.flapple.since = {base = 'spsc', Gi = 'spsc'}
t.appletun.since = {base = 'spsc', Gi = 'spsc'}
t.sandaconda.since = {base = 'spsc', Gi = 'spsc'}
t.cramorant.since = {T = 'spsc', I = 'spsc', base = 'spsc'}
t.toxtricity.since = {base = 'spsc', Gi = 'spsc'}
t.centiskorch.since = {base = 'spsc', Gi = 'spsc'}
t.sinistea.since = {base = 'spsc', A = 'spsc'}
-- Alcremie is quite molesto in **** pt. 2
t.hatterene.since = {base = 'spsc', Gi = 'spsc'}
do
t.grimmsnarl.since = {base = 'spsc', Gi = 'spsc'}
t.alcremie.since local = {baseflavours = {'spscLv', 'R', ='Ma', 'spscMe', Ma'L', ='S', 'spscRm', Me = 'spscCm', 'Tm'}
local decorations = {"Fa", "C", "B", "Fo", "Fe", "S", "Fc"}
L = 'spsc', S = 'spsc', Rm = 'spsc', Cm = 'spsc', Tm = 'spsc', Gi = 'spsc'}
 
t.copperajah.since = {base = 'spsc', Gi = 'spsc'}
t.alcremie.gamesOrder = {}
t.duraludon.since = {base = 'spsc', Gi = 'spsc'}
t.urshifualcremie.since = {base = '"spsc', Gi = 'spsc', PGi = 'spsc'"}
for _, flav in ipairs(flavours) do
for _, dec in ipairs(decorations) do
local abbr = table.concat{flav, dec}
table.insert(t.alcremie.gamesOrder, abbr)
t.alcremie.since[abbr] = "spsc"
end
end
t.alcremie.gamesOrder[1] = "base"
t.alcremie.since["LvFa"] = nil
end
 
--[[
 
t.pichu['until'] = {S = 'hgss'}
 
-- Other Gigamax forms
table.insert(t.gigamax, 'pikachu')
table.insert(t.gigamax, 'toxtricity')
table.insert(t.gigamax, 'alcremie')
table.insert(t.gigamax, 'urshifu')
 
-- Alias, messi qui per evitare inutili iterazioni dei cicli precedenti
t['flabébé'], t.florges = t.floette, t.floette
t.polteageist = t.sinistea
t[3] = t.venusaur
t[6] = t.charizard
t[9] = t.blastoise
t[12] = t.butterfree
t[25] = t.pikachu
t[52] = t.meowth
t[68] = t.machamp
t[94] = t.gengar
t[99] = t.kingler
t[131] = t.lapras
t[133] = t.eevee
t[143] = t.snorlax
t[172] = t.pichu
t[201] = t.unown
t[423] = t.gastrodon
t[521] = t.unfezant
t[569] = t.garbodor
t[585] = t.deerling
t[586] = t.sawsbuck
t[774] = t.minior
t[778] = t.mimikyu
t[809] = t.melmetal
t[812] = t.rillaboom
t[815] = t.cinderace
t[818] = t.inteleon
t[823] = t.corviknight
t[826] = t.orbeetle
t[834] = t.drednaw
t[839] = t.coalossal
t[841] = t.flapple
t[842] = t.appletun
t[844] = t.sandaconda
t[845] = t.cramorant
t[849] = t.toxtricity
t[851] = t.centiskorch
t[854] = t.sinistea
t[855] = t.polteageist
t[858] = t.hatterene
t[861] = t.grimmsnarl
t[869] = t.alcremie
t[879] = t.copperajah
t[884] = t.duraludon
 
return t
79 548

contributi

Menu di navigazione