Difference between revisions of "Template:Icon"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m (Test)
(Test)
Line 1: Line 1:
{{#switch: {{{A}}} | [[File:{{#switch:{{lc:{{{A|1}}}}}
+
{{#switch:{{{1|}}}  
<!--Curency-->
+
<!--Currency-->
|gold = Gold Icon
+
| currency = {{#switch:{{{2|}}}
|medal = Defender Medal Icon
+
  |gold = [[File:Gold Icon.png|18px]] Gold
|gem = Gem Icon
+
  |medal = [[File:Defender Medal Icon.png|18px]] Medals
}}.png|{{{A|2}}}|18px]] | }}
+
  |gem = [[File:Gem Icon.png|18px]] Gems
{{#switch: {{{B}}} | [[File:{{#switch:{{lc:{{{B|1}}}}}
+
}}
 
<!--rarity-->
 
<!--rarity-->
|worn = Worn Icon
+
| rarity = {{#switch:{{{2|}}}
|sturdy = Sturdy Icon
+
  |worn = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Worn </span>
|powerful = Powerful Icon
+
  |sturdy = <span style="color:#808000"> [[File:Sturdy Icon.png|18px]] Sturdy </span>
|epic = Epic Icon
+
  |powerful = <span style="color:#008000"> [[File:Powerful Icon.png|18px]] Powerful </span>
|mythical = Mythical Icon
+
  |epic = <span style="color:#3366FF"> [[File:Epic Icon.png|18px]] Epic </span>
|legendary = Legendary Icon
+
  |mythical = <span style="color:#ff00ff"> [[File:Mythical Icon.png|18px]] Mythical </span>
|godly = Godly Icon
+
  |legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span>
|ancient = Ancient Icon
+
  |godly = <span style="color:#40E0D0"> [[File:Godly Icon.png|18px]] Godly </span>
}}.png|{{{B|2}}}|18px]] | }}<!--
+
  |ancient = <span style="color:#FF0038"> [[File:Godly Icon.png|18px]] Ancient </span>
 +
}}
 +
}}<!--
  
 
--><noinclude>
 
--><noinclude>

Revision as of 13:19, 22 June 2026

Usage:
{{Icon|input|size}}

Example:
{{Icon|Powerful|30px}}

  • Size is optional. The default 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.

Available Inputs

Currency Rarity
Gold
Medal
Gem
Worn
Sturdy
Powerful
Epic
Mythical
Legendary
Godly
Ancient