Differenze tra le versioni di "Modulo:Movelist"

Trying again with PokéMoves-data, but this time I'm more confident *** sovrascritto il testo esistente ***
m (Fffff come sopra)
(Trying again with PokéMoves-data, but this time I'm more confident *** sovrascritto il testo esistente ***)
Right now this module is just a convenient library for movelist-entry, used to
automatically build an entry with few parameters.
 
WikiCode interfaces are documented at the end of this file.
 
===============================================================================
local blackabbr = mw.loadData('Modulo:Blackabbrev/data')
local c = mw.loadData('Modulo:Colore/data')
-- local sigpokemoves = lib.pokemoves -- mw.loadData('Modulo:SiglePokéMoves/data')
-- local sup = mw.loadData('Modulo:Sup/data')
-- local pokemoves = mw.loadData('Modulo:PokéMoves/data')
local pokes = mw.loadData('Modulo:Poké/data')
local moves = mw.loadData('Modulo:Move/data')
local altforms = mw.loadData('Modulo:AltForms/data')
local useless = mw.loadData('Modulo:UselessForms/data')
-- local movepokes = mw.loadData('Modulo:MovePokés/data')
local gendata = mw.loadData('Modulo:Gens/data')
local mtdata = mw.loadData('Modulo:Machines/data')
something isn't in data modules (most notably LGPE learnsets)
 
Arguments:
Args:
- move: move name
- kind: kind of the entry
 
-- =========================== WikiCode interfaces ============================
--[[
 
The WikiCode interface uses two arguments plus any other arguments used by
ml.entry via args.
Arguments:
- [1]: ndex of the Pokémon of this entry
- movename (optional): name of the move of this entry. If not given,
defaults to the page name
- anything documented for argument "args" of ml.entry
 
--]]
local function makeentry(kind)
ml[kind .. "entry"] = function(frame)
local p = frame.args
returnlocal mlmovename = p.entry(movename or mw.title.getCurrentTitle().text:lower(), kind, p[1], p)
return ml.entry(string.trim(movename:lower()), kind, p[1], p)
end
ml[string.fu(kind) .. "entry"] = ml[kind .. "entry"]
79 548

contributi