Module:ExperiencePicture: Difference between revisions

From Wikiyouth
No edit summary
No edit summary
Line 3: Line 3:
function p.fn(frame)
function p.fn(frame)
     local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame
     local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame
   local ret = 'abc'
   local ret = 4 * 7


   mw.log("log test")
   mw.log("log test")

Revision as of 14:59, 1 November 2024

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

local p = {}

function p.fn(frame)
    local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame
  local ret = 4 * 7

   mw.log("log test")
   mw.log(origArgs)

  return ret

end
-- =p.fn({"add\ndfdd","b","c","text"})
return p