Differenze tra le versioni di "Modulo:Css"

376 byte aggiunti ,  03:00, 25 feb 2019
Bot: updating css module to include colorscheme syntax *** sovrascritto il testo esistente ***
(Bugfix: predefs were not working - Swapped two variables)
(Bot: updating css module to include colorscheme syntax *** sovrascritto il testo esistente ***)
 
local w = require('Modulo:Wikilib')
local c = mw.loadData('Modulo:Colore/data')
local colorscheme = mw.loadData('Modulo:Colorscheme/data')
 
-- Holds mappings from standard values to vendor-specific ones
type1-normale and type2-normale are returned; otherwise, type1-light and
type1-normale are.
Another syntax with named parameter 'colorscheme' allows to use colorscheme as
gradient colors: returns the light and dark (in this order) version of the
colorscheme.
 
--]]
 
return parser.gradientArgs(p)
end
 
-- Colorscheme syntax
if p.colorscheme then
local cs = p.colorscheme
return { '#' .. colorscheme[cs].light, '#' .. colorscheme[cs].dark }
end
 
270 477

contributi