Module:ExperiencePicture: Difference between revisions

From Wikiyouth
Created page with "local p = {} function p.fn(frame) local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame local ret = '' mw.log("log test") mw.log(origArgs) return ret end -- =p.fn({"add\ndfdd","b","c","text"}) return p"
 
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 = ''
   local ret = 'abc'


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

Revision as of 14:58, 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 = 'abc'

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

  return ret

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