FANDOM


local p = {}
-- [[Module:Rarity/style]] gives the style for formatting quality
function p.style(frame)
	local data = mw.loadData( 'Module:Rarity/style' )
	local text = frame.args[1]
	if data[text] ~= nil then
		text = data[text]
        else text = 'color:gray;'
	end
	return text
end
-- [[Module:Rarity/default]] gives the default text to be shown
function p.default(frame)
	local data = mw.loadData( 'Module:Rarity/default' )
	local text = frame.args[1]
	if data[text] ~= nil then
		text = data[text]
        else text = 'Unknown'
	end
	return text
end
 
return p