Difference between revisions of "Template:Icon"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m (Test)
m (Undo revision 24613 by Palo Frogger (talk))
 
Line 1: Line 1:
[[File:{{#switch: {{{A|style="display:none;"}}}
+
{{#if: {{{A}}} | [[File:{{#switch:{{lc:{{{A|1}}}}}
 
<!--Curency-->
 
<!--Curency-->
| gold = Gold Icon.png
+
|gold = Gold Icon
| medal = Defender Medal.png
+
|medal = Defender Medal Icon
| gem = Gem Icon.png
+
|gem = Gem Icon
}}|{{{size|18px}}}]]
+
}}.png|{{{A|2|18px}}}]] | }}
[[File:{{#switch: {{{B|style="display:none;"}}}
+
{{#if: {{{B}}} | [[File:{{#switch:{{lc:{{{B|1}}}}}
<!--Curency-->
+
<!--rarity-->
| worn = Worn Icon.png
+
|worn = Worn Icon
| sturdy = Sturdy Icon.png
+
|sturdy = Sturdy Icon
| powerful = Powerful Icon.png
+
|powerful = Powerful Icon
}}|{{size|18px}}}]]<!--
+
|epic = Epic Icon
 +
|mythical = Mythical Icon
 +
|legendary = Legendary Icon
 +
|godly = Godly Icon
 +
|ancient = Ancient Icon
 +
}}.png|{{{B|2|18px}}}]] | }}<!--
  
 
--><noinclude>
 
--><noinclude>
Line 30: Line 35:
 
|-
 
|-
 
|style="vertical-align: top;"|
 
|style="vertical-align: top;"|
{{Icon|A = Gold|size = 30px}} Gold
+
{{Icon|A = Gold}} Gold
  
 
{{Icon|A = Medal|30px}} Medal
 
{{Icon|A = Medal|30px}} Medal

Latest revision as of 22:41, 2 November 2025

2 2

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 2 Gold

Medal 2 Medal

Gem 2 Gem

2 2 Worn

2 Sturdy Sturdy

2 2 Powerful

2 2 Epic

2 2 Mythical

2 2 Legendary

2 2 Godly

2 2 Ancient