Module:ExperiencePicture: Difference between revisions

From Wikiyouth
No edit summary
No edit summary
Tag: Manual revert
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
function p.main(frame)
function p.main(frame)
   local args = frame:getParent().args
   local args = frame:getParent().args
   local ret = ''
 
  for k, v in pairs(args) do
   local picture = 'File:Avatar ESC.png'
    ret = ret .. ',' .. k .. ',' .. v
 
  end
if args['picture'] ~= nil and args['picture'] ~= 'File:'  then
  return ret
  picture = args['picture']
end
 
  return '[[ ' .. picture .. '|100px|link=]]'
end
end


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