Module:Damage: Difference between revisions

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

Revision as of 00:40, 20 March 2022

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

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