![]() | Help support Yugipedia by using our Chrome extension, which redirects links to the old Wikia/Fandom site to Yugipedia, ensuring you see the most up-to-date information. If you have any issues or find any bugs, be sure to let us know on Discord! |
Module:Data/static/rarity

-- <pre>
local thisData = mw.loadData( 'Module:Data/static/rarity/data' )
local function normalize( v )
return type( v ) == 'string'
and mw.text.trim( v )
:lower()
:gsub( ' rare$', '' )
:gsub( "[/%s%-_']", '' )
or nil
end
return function( v )
return thisData.main[
thisData.normalize[
normalize( v )
]
]
end
-- </pre>