Difference between revisions of "Template:Icon"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
{{#if: {{{A|?}}} | [[File:{{#switch:{{lc:{{{1}}}}}
+
{{#if: {{{A|?}}} | [[File:{{#switch:{{lc:{{{A|1}}}}}
 
<!--Curency-->
 
<!--Curency-->
 
|gold = Gold Icon
 
|gold = Gold Icon
Line 5: Line 5:
 
|gem = Gem Icon
 
|gem = Gem Icon
 
}}.png|{{{2|18px}}}]]}}
 
}}.png|{{{2|18px}}}]]}}
{{#if: {{{B|?}}} | [[File:{{#switch:{{lc:{{{1}}}}}
+
{{#if: {{{B|?}}} | [[File:{{#switch:{{lc:{{{B|1}}}}}
 
<!--rarity-->
 
<!--rarity-->
 
|worn = Worn Icon
 
|worn = Worn Icon
Line 35: Line 35:
 
|-
 
|-
 
|style="vertical-align: top;"|
 
|style="vertical-align: top;"|
{{Icon|A = Gold|30px}} Gold
+
{{Icon|A|Gold|30px}} Gold
  
 
{{Icon|A = Medal|30px}} Medal
 
{{Icon|A = Medal|30px}} Medal

Revision as of 22:14, 2 November 2025

18px 18px

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

2 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