Module:Test: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(testing Scribunto)
 
(attempt to port the icontech template)
Line 1: Line 1:
local p = {}
local p = {}
function p.main(frame)
function p.main(frame)
  local args = frame.args
  local args = frame.args
  mw.log("log test")
  return args[1]..args["sep"]..args[2]
  return args[1]..args["sep"]..args[2]
end
end
function p.icontech(frame)
  frame.args.color = frame.args.color or "228B22"
  frame:expandTemplate{title = 'Icon', args = frame.args}
end
return p
return p

Revision as of 11:55, 1 October 2024

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

local p = {}
function p.main(frame)
  local args = frame.args
  return args[1]..args["sep"]..args[2]
end

function p.icontech(frame)
  frame.args.color = frame.args.color or "228B22"
  frame:expandTemplate{title = 'Icon', args = frame.args}
end

return p