79 548
contributi
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 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 gendata = mw.loadData('Modulo:Gens/data')
local mtdata = mw.loadData('Modulo:Machines/data')
something isn't in data modules (most notably LGPE learnsets)
Arguments:
- 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
return ml.entry(string.trim(movename:lower()), kind, p[1], p)
end
ml[string.fu(kind) .. "entry"] = ml[kind .. "entry"]
|