Documentation[purge]
This template is used to automatically format text in the rarity colors given by {{rarity}}
.
Usage
{{raritytext|<rarity>|<text contents> |link=<link destination (optional)> |<font-weight (optional)> |style=<additional css styles (optional)> }}
Parameters
- <rarity>
- The rarity whose color you want displayed. For a list of valid entries, see
{{rarity}}
. - <text contents>
- The text to be styled
- |link=
- Turn the text into a link and specify the destination in this parameter.
- <font-weight>
- The (optional) desired CSS font-weight property for the text, see the MDN entry for font-weight for examples.
- |style=
- Any additional desired CSS styles. Optional and rarely needed.
Examples
{{raritytext|common|COMMON}}
results in "COMMON"{{raritytext|common|BOLD COMMON|bold}}
results in "BOLD COMMON"{{raritytext|common|UNDERLINE COMMON|style=text-decoration:underline;}}
results in "UNDERLINE COMMON"{{raritytext|common|LINK COMMON|link=Common}}
results in "LINK COMMON"
{{raritytext|uncommon|UNCOMMON}}
results in "UNCOMMON"{{raritytext|rare|RARE}}
results in "RARE"{{raritytext|epic|EPIC}}
results in "EPIC"{{raritytext|legendary|LEGENDARY}}
results in "LEGENDARY"{{raritytext|mythic|MYTHIC}}
results in "MYTHIC"
Predefined Texts
{{handmade}}
results in Handmade{{common}}
results in Common{{uncommon}}
results in Uncommon{{rare}}
results in Rare{{epic}}
results in Epic{{legendary}}
results in Legendary{{mythic}}
results in Mythic{{transcendent}}
results in Transcendent{{Icon Series}}
results in Icon Series
See Also
{{rarity}}
{{raritycell}}
About
The above documentation is transcluded from Template:Raritytext/doc. (edit | history)