Template:Rarity
Purpose
A template that resolves an integer into its respective star png or text string. Useful for infoboxes.
Parameter List
{{Rarity | <!-- Anonymous parameter. The desired value of the star png. --> |text = <!-- Whether a text string should be outputted instead of a star png. Treated as true if it's not blank. --> }}
Examples
1★
{{Rarity|1}}
12.5★
{{Rarity|12.5}}
12.5
15★
{{Rarity|15}}
15★, text only
{{Rarity|15|text=1}}
15★
30★
{{Rarity|30}}
30