Module:Foreach

From The Binding of Isaac Lost and Forgotten Wiki
Jump to navigation Jump to search

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

local w = {}
function w.fe(frame)
	local args = frame.args
	local t = {}
	for element in args[1]:gmatch("%S+") do
    	table.insert(t, element)
	end
	te = ""
	for i, element in pairs(t) do
--   te = te .. frame:expandTemplate{ title = 'Itemtags/Icon', args = {element} }
	te = te .. '[[File:Item_tag_' .. element .. '.png|24px|link=]]'
	end
	return te
end
return w