Module:Thumb

-- Function for getting the right frame of the thumb -- function t.getFrame(rarityCards, typeCards) local rarityArray = { ["LR"] = "SSR", ["UR"] = "SSR", ["SSR"] = "SSR", ["SR"] = "SR", ["R"] = "R", ["N"] = "N", }       local typeArray = { ["AGL"] = "AGL", ["S.AGL"] = "AGL", ["E.AGL"] = "AGL", ["TEQ"] = "TEQ", ["S.TEQ"] = "TEQ", ["E.TEQ"] = "TEQ", ["INT"] = "INT", ["S.INT"] = "INT", ["E.INT"] = "INT", ["STR"] = "STR", ["S.STR"] = "STR", ["E.STR"] = "STR", ["PHY"] = "PHY", ["S.PHY"] = "PHY", ["E.PHY"] = "PHY", }       local strFrame = "  https://vignette.wikia.nocookie.net/howling/images/5/57/Rays_apng.png/revision/latest?cb=20190901104012&format=original     " .. string.char(10) return str end -- Function for getting all cards with a specific category, type and rarity -- function t.getCardsCategory(frame) local id = frame.args[1] local rarityCards = frame.args[2] local typeCards = frame.args[3] local link = frame.args[4] local size = tonumber(frame.args[5]) or 110 local frameCards = t.getFrame(rarityCards, typeCards) local card = t.getHtmlLR(frameCards, size, link, id, typeCards) return card end