Module:Test2

local function explode(div,str) if (div=='') then return false end local pos,arr = 0,{} -- for each divider found for st,sp in function return string.find(str,div,pos,true) end do		arr[#arr + 1] = mw.text.trim(string.sub(str,pos,st-1)) -- Attach chars left of current divider pos = sp + 1 -- Jump past current divider end arr[#arr + 1] = mw.text.trim(string.sub(str,pos)) -- Attach chars right of last divider return arr end

return { go = function(frame) local valueList = explode('¤', frame.args['buffids']) for i, buffId in ipairs(valueList) do		valueList[i] = frame:expandTemplate{ title = 'exclusive icon link', args = { frame:expandTemplate{ title = 'buffNameFromId', args = { buffId, lang='en' } } } } end --return table.concat(valueList, ', ') --return frame:expandTemplate{ title = 'exclusive icon link', args = { 'Stoned' } } .. ', ' .. frame:expandTemplate{ title = 'exclusive icon link', args = { 'Chilled' } } local nameFromId = frame:expandTemplate{ title = 'getBuffInfo', args = { '22', 'name', lang='en', nohtml='y' } } local nameRaw = 'Darkness' return frame:expandTemplate{ title = 'exclusive icon link', args = { nameFromId } } .. ', ' .. frame:expandTemplate{ title = 'exclusive icon link', args = { nameRaw } } end }