Module:ExperiencePicture: Difference between revisions

From Wikiyouth
No edit summary
No edit summary
Tag: Manual revert
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
local p = {}
local p = {}


function p.fn(frame)
function p.main(frame)
    local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame
  local args = frame:getParent().args
  local ret = 'abc'


  mw.log("log test")
  local picture = 'File:Avatar ESC.png'
  mw.log(origArgs)


  return ret
if args['picture'] ~= nil and args['picture'] ~= 'File:'  then
  picture = args['picture']
end


  return '[[ ' .. picture ..  '|100px|link=]]'
end
end
-- =p.fn({"add\ndfdd","b","c","text"})
 
return p
return p

Latest revision as of 15:25, 28 February 2025

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

local p = {}

function p.main(frame)
  local args = frame:getParent().args

  local picture = 'File:Avatar ESC.png'

if args['picture'] ~= nil and args['picture'] ~= 'File:'  then
   picture = args['picture']
end

  return '[[ ' .. picture ..  '|100px|link=]]'
end

return p