Differenze tra le versioni di "Modulo:Learnlist"

Multigen in move-data *** sovrascritto il testo esistente ***
m (Bugfix #2 (to make this work in subpages))
(Multigen in move-data *** sovrascritto il testo esistente ***)
--]]
l.entrytail = function(poke, mossa, notes, gen)
local data = multigen.getgen(moves[mossa], gen)
local stab = lib.computeSTAB(poke, mossa, nil, gen)
return lib.categoryentry(stab, data.name, notes, string.fu(data.type),
 
l[kind] = function(frame)
local poke, gen = l.getParams(frame)
return l.entryLua(poke, gen, kind)
end
Arguments:
- poke: Pokémon name or ndex
- gen: generation for this entry
- move: move name, all lowercase
- tmnum: tm or hm number. Is a pair { "M[TN]", "<number>" }
 
--]]
l.tmEntry = function(poke, gen, move, tmnum, games)
local tmcell = string.interp(STRINGS.tmcell, {
img = tmnum[1],
p1 = table.concat(tmnum),
tipo = string.fu(multigen.getGenValue(moves[move].type), or 'Sconosciuto'gen))
or 'Sconosciuto'
})
return table.concat{
return l.ltTm(a[2], b[2])
end,
makeEntry = function(poke, _gen, val)
return l.tmEntry(poke, gen, unpack(val))
end,
}
79 548

contributi