79 548
contributi
m (Temporary rollback of function "forPokeTypes") |
(Moving function for text color on Pokémon gradient from ChooseColor to PokémonData (step 1) *** sovrascritto il testo esistente ***) |
||
local p = {}
local
local w = require('Modulo:Wikilib')
local multigen = require('Modulo:Wikilib/multigen')
local colorMod = mw.loadData('Modulo:Colore/data')
local colorschemeMod = mw.loadData('Modulo:Colorscheme/data')
-- Given a background hex color, return the most appropriate text color
p.forBg = function(frame)
return p.forBgLua(string.trim(frame.args[1]))
end
end
▲local pd = require('Modulo:PokémonData')
-- when colors are types of a Pokémon; accepts both ndex and name
p.forPokeTypes = function(frame)
local args = w.trimAll(frame.args)
local poke = formlib.nameToDataindex(mw.text.decode(args[1]))
local gen = args.gen or ''
local type1 =
local type2 =
return p.
end
|