Module:Leaf
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Leaf/doc
local p = {}
local args = require
function p.main(frame)
local s = frame.args.s
local images = ''
for i, leaf in ipairs(frame:getParent().args) do
images = images .. p.image(leaf, s)
end
return images
end
function p.image(name, size)
local lang = mw.language.new("en")
local title = lang:ucfirst(name)
return '[[File:'..title..' Leaf.png|x'..size..'|link='..title..' Leaf]]'
end
return p