Difference between revisions of "Template:Icon"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Test)
m
Line 2: Line 2:
 
<!--Currency-->
 
<!--Currency-->
 
| currency = {{#switch:{{{2|}}}
 
| currency = {{#switch:{{{2|}}}
   |gold = [[File:Gold Icon.png|18px]] Gold
+
   |gold = [[File:Gold Icon.png|18px]]
   |medal = [[File:Defender Medal Icon.png|18px]] Medals
+
   |medal = [[File:Defender Medal Icon.png|18px]]
   |gem = [[File:Gem Icon.png|18px]] Gems
+
   |gem = [[File:Gem Icon.png|18px]]
 
}}
 
}}
 
<!--rarity-->
 
<!--rarity-->
Line 23: Line 23:
 
|-
 
|-
 
|
 
|
'''Usage:''' <br> <code><nowiki>{{</nowiki>Icon|''input''|''size''<nowiki>}}</nowiki></code>
+
'''Usage:''' <br> <code><nowiki>{{</nowiki>Icon|''category''|''type''<nowiki>}}</nowiki></code>
 
||
 
||
'''Example:''' <br> <code><nowiki>{{</nowiki>Icon|Powerful|30px<nowiki>}}</nowiki></code>
+
'''Example:''' <br> <code><nowiki>{{</nowiki>Icon|rarity|powerful<nowiki>}}</nowiki></code>
 
|}
 
|}
  
* Size is optional. The default will always be '''18px'''.
+
* Current default size will always be '''18px'''.
 
* Accepted inputs are not case-sensitive. But for consistency, probably best to stick to having the first letter of each input in upper-case.
 
* Accepted inputs are not case-sensitive. But for consistency, probably best to stick to having the first letter of each input in upper-case.
 +
* Only the rarity category will have the wording beside their respective icons.
  
 
=== Available Inputs ===
 
=== Available Inputs ===
Line 37: Line 38:
 
|-
 
|-
 
|style="vertical-align: top;"|
 
|style="vertical-align: top;"|
{{Icon|currency|gold}}
+
{{Icon|currency|gold}} Gold
  
{{Icon|currency|medal}}
+
{{Icon|currency|medal}} Defender Medal
  
{{Icon|currency|gem}}
+
{{Icon|currency|gem}} Gem
 
|style="vertical-align: top;"|
 
|style="vertical-align: top;"|
 
{{Icon|rarity|worn}}
 
{{Icon|rarity|worn}}

Revision as of 13:31, 22 June 2026

Usage:
{{Icon|category|type}}

Example:
{{Icon|rarity|powerful}}

  • Current default size will always be 18px.
  • Accepted inputs are not case-sensitive. But for consistency, probably best to stick to having the first letter of each input in upper-case.
  • Only the rarity category will have the wording beside their respective icons.

Available Inputs

Currency Rarity

Gold Icon.png Gold

Defender Medal Icon.png Defender Medal

Gem Icon.png Gem

Worn Icon.png Worn

Sturdy Icon.png Sturdy

Powerful Icon.png Powerful

Epic Icon.png Epic

Mythical Icon.png Mythical

Legendary Icon.png Legendary

Godly Icon.png Godly

Ancient Icon.png Ancient