Jump to content

Template:Rarity: Difference between revisions

From Blockgame Wiki
Limited Template to 0 Namespace
m Text replacement - "Category:Template" to "Category:Templates"
 
Line 11: Line 11:
   | #default= <span class="mw-no-invert rarity-ERROR" style="-webkit-text-stroke: 0px;">ERROR</span>
   | #default= <span class="mw-no-invert rarity-ERROR" style="-webkit-text-stroke: 0px;">ERROR</span>
}}{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#if:{{{nocat|}}}||[[Category:{{{1}}} Rarity]]}}}}</includeonly><!--
}}{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#if:{{{nocat|}}}||[[Category:{{{1}}} Rarity]]}}}}</includeonly><!--
--><noinclude>[[Category:Template]]{{doc}}</noinclude>
--><noinclude>[[Category:Templates]]{{doc}}</noinclude>

Latest revision as of 17:33, 2 April 2025

Documentation

The {{Rarity}} template is used to allow easy displaying rarities in their respective rarity color.

Usage

{{Rarity|Common}}
{{Rarity|Epic}}
{{Rarity|Quest|nocat=1}}

Possible rarities are: Junk, Common, Uncommon, Rare, Epic, Exotic, Legendary, Quest and Currency.

If a invalid rarity is selected a ERROR is displayed.

Template parameters

Attribute Description Required? Default
{{{1}}}} Rarity Selector Required ERROR
nocat Suppresses the Category creation Optional 0

Example

Example Result
Junk Junk
Common Common
Uncommon Uncommon
Rare Rare
Epic Epic
Exotic Exotic
Legendary Legendary
Quest Quest
Currency Currency