Module:Damage: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 2: Line 2:
p.loop = function(frame)
p.loop = function(frame)
     local t = {}
     local t = {}
    local k = {}
     for name, value in frame:argumentPairs() do
     for name, value in frame:argumentPairs() do
         t[name] = value
         k[name] = name
     end
     end
     t = table.concat(t, ", ")
     k = table.concat(k, ", ")
     return t
     return k
end
end
return p
return p

Revision as of 00:43, 20 March 2022

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

local p = {}
p.loop = function(frame)
    local t = {}
    local k = {}
    for name, value in frame:argumentPairs() do
        k[name] = name
    end
    k = table.concat(k, ", ")
    return k
end
return p