Module:Confuse

-- local p = {}

function p.main(frame) local args = frame:getParent.args local ret = mw.html.create('div') :addClass('seealso') local params = {} local ttl = 0 for _, v in ipairs(args) do		ttl = ttl + 1 table.insert(params,v) end ret:wikitext('Not to be confused with ') for i, v in ipairs(params) do		if i 1 then ret:wikitext(..v..) elseif i == ttl then if ttl == 1 then ret:wikitext(..v..) else ret:wikitext(' or '..v..'') end end if i 2 then ret:wikitext(', ') end end ret:wikitext('.') return ret end

return p