FANDOM


local p = {}
 
local data = mw.loadData( 'Module:ImagesTT/data' )
 
-- Creates stars for rarity level
function p.nStars( frame )
  local star = frame.args[1]
  if star ~= nil then
    star = tonumber(star)
    -- Value was not number so use it instead of bar
    if star == nil then
      return frame.args[1]
    end
  else
    star = 0
  end
  return data["nStar"][star]
end
 
return p
Community content is available under CC-BY-SA unless otherwise noted.