Template:Rarity: Difference between revisions
(creation) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1}}}|normal=[[Item Rarity|<span style="color:#FFF;background-color:#AAA;padding:4px;">''' | <includeonly>{{#switch:{{{1}}}|normal=[[Item Rarity|<span style="color:#FFF;background-color:#AAA;padding:4px;">'''{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}'''</span>]]|magic=[[Item Rarity|<span style="color:#0FF;background-color:#AAA;padding:4px;">'''{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}'''</span>]]|rare=[[Item Rarity|<span style="color:#FF0;background-color:#AAA;padding:4px;">'''{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}'''</span>]]|soul=[[Item Rarity|<span style="color:#DAA949;background-color:#AAA;padding:4px;">'''{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}'''</span>]]|unique=[[Item Rarity|<span style="color:#050;background-color:#AAA;padding:4px;">'''{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}'''</span>]]}}</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{rarity|<rarity>}}</pre> | <pre>{{rarity|<rarity>}}</pre> | ||
Line 8: | Line 8: | ||
;1 ''(unnamed parameter)'' | ;1 ''(unnamed parameter)'' | ||
: Rarity name. | : Rarity name. | ||
;2 ''(unnamed parameter)'' | |||
: Optional text. (e.g. item name) | |||
== Examples == | == Examples == | ||
Line 15: | Line 17: | ||
* {{rarity|soul}} is produced from <code><nowiki>{{rarity|normal}}</nowiki></code> | * {{rarity|soul}} is produced from <code><nowiki>{{rarity|normal}}</nowiki></code> | ||
* {{rarity|unique}} is produced from <code><nowiki>{{rarity|normal}}</nowiki></code> | * {{rarity|unique}} is produced from <code><nowiki>{{rarity|normal}}</nowiki></code> | ||
* {{rarity|normal|Old Quilted Cloth Cape}} is produced from <code><nowiki>{{rarity|normal}}</nowiki></code> |
Revision as of 22:36, 22 June 2024
Description
{{rarity|<rarity>}}
Displays a formatted version of the rarity/quality name.
Parameters
- 1 (unnamed parameter)
- Rarity name.
- 2 (unnamed parameter)
- Optional text. (e.g. item name)