Viewing old revision of Module:TEST/Game
You are viewing an old revision of this page from 1/22/2026, 11:22:58 AM.
View latest versionNo documentation subpage (
/doc) found for this module.const Utils = await require("Utils");
exports.wikiRarity = function(props) {
const args = Utils.resolveArgs(props);
const rarity = String(args["rarity"] ?? args[0]);
switch (rarity?.toLowerCase()) {
case "rare": case "1": return `<span class="rarity-rare">Rare</span>`;
case "exotic": case "2": return `<span class="rarity-exotic">Exotic</span>`;
case "cosmetic": case "3": return `<span class="rarity-cosmetic">Cosmetic</span>`;
default: return `<span class="rarity-common">Common</span>`;
}
}