Module:ExperiencePicture: Difference between revisions
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 Tag: Manual revert |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function 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 | 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