Module:ModuleUniqueStatTable: Difference between revisions

From The First Descendant Wiki
(Created page with "local p = {} function p.processData(frame) local property1 = frame.args.property1 or "" local property2 = frame.args.property2 or "" -- Process the data local result = "Property1: " .. property1 .. ", Property2: " .. property2 return result end return p")
 
No edit summary
Line 4: Line 4:
     local property1 = frame.args.property1 or ""
     local property1 = frame.args.property1 or ""
     local property2 = frame.args.property2 or ""
     local property2 = frame.args.property2 or ""
    local Name = frame.args.Name or ""
      
      
     -- Process the data
     -- Process the data
     local result = "Property1: " .. property1 .. ", Property2: " .. property2
     local result = "Name: " .. Name .. ", Property2: " .. property2
      
      
     return result
     return result

Revision as of 01:16, 5 June 2024

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

local p = {}

function p.processData(frame)
    local property1 = frame.args.property1 or ""
    local property2 = frame.args.property2 or ""
    local Name = frame.args.Name or ""
    
    -- Process the data
    local result = "Name: " .. Name .. ", Property2: " .. property2
    
    return result
end

return p