79 547
contributi
m (Nome giusto) |
(Handling empty form names and Minior Core *** sovrascritto il testo esistente ***) |
||
local t = {}
local txt = require('Modulo:Wikilib/strings') -- luacheck: no unused
local tab = require('Modulo:Wikilib/tables') -- luacheck: no unused
-- Crea i link alle forme alternative
for name, poke in pairs(stdLinks) do
poke[index] = table.map(poke.names, function(formName)
return
and ''
or string.interp(link, {
anchor = poke.anchor or string.fu(name),
formName = formName
-- Link vuoti: mega, megaxy e archeo
for _, poke in pairs(t.mega) do
t[poke][index] = table.map(t[poke].names, function()
for _, poke in pairs(t.alola) do
t[poke][index] = table.map(t[poke].names, function(formName)
return
and ''
or string.interp(link, {
anchor = t[poke].anchor or string.fu(poke),
formName = formName
end
--[[
There's a table for each Pokémon. Some are missing because they would be equal
to others, thus there's aliasing at the end of the module.
--]]
t.pikachu = {}
t.wishiwashi = {}
t.silvally = {}
t.minior = {}
t.necrozma = {}
'geodude', 'grimer', 'exeggutor', 'marowak'}
--[[
Alternative forms names. Keys are the abbr.
--]]
t.pikachu.names = {Cs = 'Pikachu Cosplay', R = 'Pikachu Rockstar',
D = 'Pikachu Damigella', Cn = 'Pikachu Confetto',
S = 'Pikachu Scienziata', W = 'Pikachu Wrestler', base = '
t.castform.names = {S = 'Forma Sole', P = 'Forma Pioggia',
N = 'Forma Nuvola di Neve', base = 'Forma Castform'}
t.giratina.names = {O = 'Forma Originale', base = 'Forma Alterata'}
t.shaymin.names = {C = 'Forma Cielo', base = 'Forma Terra'}
t.arceus.names = {base = '
D = 'Tipo Drago', Fo = 'Tipo Folletto', El = 'Tipo Elettro',▼
▲ G = 'Tipo Ghiaccio', Sc = 'Tipo Sconosciuto'}
t.basculin.names = {B = 'Forma Lineablu', base = 'Forma Linearossa'}
t.darmanitan.names = {Z = 'Stato Zen', base = 'Stato Normale'}
t.tornadus.names = {T = 'Forma Totem', base = 'Forma Incarnazione'}
t.kyurem.names = {N = 'Kyurem Nero', B = 'Kyurem Bianco', base = 'Forma di Kyurem'}
t.meloetta.names = {D = 'Forma Danza', base = 'Forma Canto'}
t.greninja.names = {A = 'Forma Ash', base = '
t.meowstic.names = {F = 'Femmina', base = 'Maschio'}
t.aegislash.names = {S = 'Forma Spada', base = 'Forma Scudo'}
t.lycanroc.names = {N = 'Forma Notte', C = 'Forma Crepuscolo', base = 'Forma Giorno'}
t.wishiwashi.names = {B = 'Forma Banco', base = 'Forma Individuale'}
t.silvally.names = {base = 'Tipo Normale', L = 'Tipo Lotta', Vo = 'Tipo Volante',
Ve = 'Tipo Veleno', T = 'Tipo Terra', R = 'Tipo Roccia', Aq = 'Tipo Acqua',
S = 'Tipo Spettro', Ai = 'Tipo Acciaio', Fu = 'Tipo Fuoco',
▲ D = 'Tipo Drago', Fo = 'Tipo Folletto', El = 'Tipo Elettro',
G = 'Tipo Ghiaccio'}
t.minior.names = {R = 'Forma Nucleo', base = 'Forma Meteora'}
t.necrozma.names = {V = 'Necrozma Criniera del Vespro', A = 'Necrozma Ali dell\'Aurora',
U = 'UltraNecrozma', base = ''}
for k, v in pairs(t.mega) do
local fu = string.fu(v)
for k, v in pairs(t.alola) do
t[v] = {}
t[v].names = {A = 'Forma di Alola', base = '
end
t.pumpkaboo.anchor = 'Pumpkaboo e Gourgeist'
-- Alternative forms' links
makeLinks()
-- Alternative forms' black links
makeLinks(true)
-- Table to map extended names to abbrs
t.pikachu.ext = {cosplay = 'Cs', rockstar = 'R', damigella = 'D',
t.silvally.ext = mw.clone(t.arceus.ext)
t.silvally.ext.sconosciuto = nil
t.minior.ext = {nucleo = 'R', meteora = 'base'}
t.necrozma.ext = {vespro = 'V', aurora = 'A', ultra = 'U', necrozma = 'base'}
for k, v in pairs(t.mega) do
end
--[[
Arrays keeping the order in which alternative forms are listed in the latest
game.
--]]
t.pikachu.gamesOrder = {'base', 'Cs', 'R', 'D', 'Cn', 'S', 'W'}
t.wishiwashi.gamesOrder = {'base', 'B'}
t.silvally.gamesOrder = mw.clone(t.arceus.gamesOrder)
t.minior.gamesOrder = {'base', 'R'}
t.necrozma.gamesOrder = {'base', 'V', 'A', 'U'}
table.remove(t.silvally.gamesOrder)
end
--[[
Oldest game in which each form, included base form, appears.
--]]
t.rattata.since = {A = 'sl', base = 'rb'}
R = 'sl', Aq = 'sl', C = 'sl', Er = 'sl', P = 'sl', B = 'sl', S = 'sl',
Ai = 'sl', Fu = 'sl', D = 'sl', Fo = 'sl', El = 'sl', G = 'sl'}
t.minior.since = {base = 'sl', R = 'sl'}
t.necrozma.since = {base = 'sl', V = 'usul', A = 'usul', U = 'usul'}
t.venusaur.since = {M = 'xy', base = 'rb'}
t[746] = t.wishiwashi
t[773] = t.silvally
t[774] = t.minior
t[800] = t.necrozma
t[3] = t.venusaur
|