Documentation for this module may be created at Module:Iconrows/doc
shiny = {}
function shiny.main(frame)
local prefix = '{{IconCenter| {{IconRow|'
local suffix = '|width=60}} }}'
local out = '{{IconCenter| {{IconRow'
local icons_per_row = 10
local sep
local i = 0
local filter = frame:getParent().args["filter"] == "true"
for k, v in pairs(frame:getParent().args) do
if filter and (tostring(v):lower():find(":") or tostring(v):lower():find("/") or k == "filter") then
else
if (i%icons_per_row)==0 and i~=0 then sep = suffix..''..prefix else sep = '|' end
if #v>0 then
out = out..sep..v
i = i + 1
end
end
end
out = out..'|width=60}} }}'
return frame:preprocess(out)
end
return shiny