Difference between revisions of "Module:HerbGallery"
From A Wiki in the Desert
Line 2: | Line 2: | ||
function p.gallery( frame ) | function p.gallery( frame ) | ||
− | + | local keyset={} | |
+ | local n=0 | ||
+ | |||
+ | for k,v in pairs(frame:getParent().args) do | ||
+ | n=n+1 | ||
+ | keyset[n]=k | ||
+ | end | ||
+ | |||
+ | |||
+ | return keyset | ||
end | end | ||
return p | return p |
Revision as of 02:35, 15 May 2021
Documentation for this module may be created at Module:HerbGallery/doc
local p = {} --p stands for package function p.gallery( frame ) local keyset={} local n=0 for k,v in pairs(frame:getParent().args) do n=n+1 keyset[n]=k end return keyset end return p