Module:Adaptable background: Difference between revisions

Created page with "-- Code by Melecie (Q684) p = {} -- literally my first lua code ever please don't bite :3 -mel -- Function returns either a solid or gradient background depending on the number of inputs p.bg = function(frame) local length = 0 local colors = {} for i in string.gmatch(frame.args[1], "[^,]+") do table.insert(colors, i) length = length + 1 end if length > 1 then -- return gradient local background = "background-image: linear-gradient(to right" for n = 1..."
(Created page with "-- Code by Melecie (Q684) p = {} -- literally my first lua code ever please don't bite :3 -mel -- Function returns either a solid or gradient background depending on the number of inputs p.bg = function(frame) local length = 0 local colors = {} for i in string.gmatch(frame.args[1], "[^,]+") do table.insert(colors, i) length = length + 1 end if length > 1 then -- return gradient local background = "background-image: linear-gradient(to right" for n = 1...")
 
(No difference)
Bureaucrats, emailconfirmed, Administrators
16,288

edits