Module:Damage: Difference between revisions

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

Revision as of 00:44, 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] = value
    end
    k = table.concat(k, ", ")
    return k
end
return p