Module:FlexGallery: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local width | local width | ||
local images = {} | local images = {} | ||
local thumbnails = {} | local thumbnails = {} | ||
| Line 9: | Line 9: | ||
for k, v in pairs(frame.args) do | for k, v in pairs(frame.args) do | ||
if k == 1 then | if k == 1 then | ||
return | if type(v) == "number" then | ||
width = v | |||
return width | |||
end | |||
end | end | ||
end | end | ||
Revision as of 20:07, 20 August 2025
Documentation for this module may be created at Module:FlexGallery/doc
local p = {}
local width
local images = {}
local thumbnails = {}
-- frame.args
p.hi = function(frame)
for k, v in pairs(frame.args) do
if k == 1 then
if type(v) == "number" then
width = v
return width
end
end
end
end
return p