Module:Properties-UMVC3

From SuperCombo Wiki
Revision as of 16:13, 27 March 2024 by Kaladin (talk | contribs) (Created page with "local p = {} function p.drawDataProperties(frame) local name = frame.args[1] local wikitext = "" if (name ~= "") then wikitext = "'''" .. name .. ":'''\n" end for token in string.gmatch(frame.args[2], '([^;\\]+)') do property = token wikitext = wikitext .. "*" .. property .. "\n" end return wikitext end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Properties-UMVC3/doc

local p = {}

function p.drawDataProperties(frame)
  local name = frame.args[1]

  local wikitext = ""

  if (name ~= "")
  then
    wikitext = "'''" .. name .. ":'''\n"
  end
  
  for token in string.gmatch(frame.args[2], '([^;\\]+)') do
    property = token

    wikitext = wikitext .. "*" .. property .. "\n"

  end

  return wikitext
end

return p