Template:Rarity

From Phantasy Star Universe Clementine
Revision as of 13:38, 21 December 2023 by Mika (talk | contribs) (add text string functionality)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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}}

1★

12.5★

{{Rarity|12.5}}

12.5

15★

{{Rarity|15}}

15★

15★, text only

{{Rarity|15|text=1}}

15★

30★

{{Rarity|30}}

30