Jump to content

Module:FlexGallery: Difference between revisions

From Climbopedia
No edit summary
No edit summary
Line 1: Line 1:
local p = {}
local p = {}
local width = 120
local width = 120
local a = ""
local images = {}
local thumbnails = {}


-- frame.args
-- frame.args
Line 7: Line 8:
p.hi = function(frame)
p.hi = function(frame)
     for k, v in pairs(frame.args) do
     for k, v in pairs(frame.args) do
         if k == "name" then
         if k == 0 then
             width = v
             return v
            return width
         end
         end
        a = a .. v
     end
     end
return a
end
end


return p
return p

Revision as of 20:04, 20 August 2025

Documentation for this module may be created at Module:FlexGallery/doc

local p = {}
local width = 120
local images = {}
local thumbnails = {}

-- frame.args

p.hi = function(frame)
    for k, v in pairs(frame.args) do
        if k == 0 then
            return v
        end
    end
end

return p