Difference between revisions of "Template:Icon"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m
m (Test)
Line 4: Line 4:
 
|medal = Defender Medal Icon
 
|medal = Defender Medal Icon
 
|gem = Gem Icon
 
|gem = Gem Icon
}}.png|{{{2|18px}}}]]
+
}}.png|{{{2|18px}}}]]}}
}}
+
{{#if: {{{B|?}}} | [[File:{{#switch:{{lc:{{{B|1}}}}}
{{#if: {{{B|[[File:{{#switch:{{lc:{{{1}}}}}
 
 
<!--rarity-->
 
<!--rarity-->
 
|worn = Worn Icon
 
|worn = Worn Icon
Line 16: Line 15:
 
|godly = Godly Icon
 
|godly = Godly Icon
 
|ancient = Ancient Icon
 
|ancient = Ancient Icon
}}.png|{{{A|2|18px}}}]]
+
}}.png|{{{A|2|18px}}}]]}}<!--
}}}
 
}}<!--
 
  
 
--><noinclude>
 
--><noinclude>
Line 46: Line 43:
 
{{Icon|Worn|30px}} Worn
 
{{Icon|Worn|30px}} Worn
  
{{Icon|Sturdy|30px}} Sturdy
+
{{Icon|B = Sturdy|30px}} Sturdy
  
 
{{Icon|Powerful|30px}} Powerful
 
{{Icon|Powerful|30px}} Powerful

Revision as of 23:08, 2 November 2025

18px 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 18px Gold

Medal 18px Medal

Gem 18px Gem

18px 18px Worn

18px Sturdy Sturdy

18px 18px Powerful

18px 18px Epic

18px 18px Mythical

18px 18px Legendary

18px 18px Godly

18px 18px Ancient