Difference between revisions of "Template:Icon"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{#switch:{{lc:{{{1}}}}}
+
{{#if: {{{A}}} | [[File:{{#switch:{{lc:{{{A|1}}}}}
 
<!--Curency-->
 
<!--Curency-->
 
|gold = Gold Icon
 
|gold = Gold Icon
 +
|medal = Defender Medal Icon
 
|gem = Gem Icon
 
|gem = Gem Icon
|medal = Defender Medal Icon
+
}}.png|{{{A|2}}}|18px]] | }}
 +
{{#if: {{{B}}} | [[File:{{#switch:{{lc:{{{B|1}}}}}
 
<!--rarity-->
 
<!--rarity-->
 
|worn = Worn Icon
 
|worn = Worn Icon
Line 13: Line 15:
 
|godly = Godly Icon
 
|godly = Godly Icon
 
|ancient = Ancient Icon
 
|ancient = Ancient Icon
}}.png|{{#switch:{{lc:{{{1}}}}}
+
}}.png|{{{B|2}}}|18px]] | }}<!--
}}{{{2|18px}}}]] </includeonly>
+
 
 +
--><noinclude>
 +
{| style="text-align: center; width:50%;"
 +
|-
 +
|
 +
'''Usage:''' <br> <code><nowiki>{{</nowiki>Icon|''input''|''size''<nowiki>}}</nowiki></code>
 +
||
 +
'''Example:''' <br> <code><nowiki>{{</nowiki>Icon|Powerful|30px<nowiki>}}</nowiki></code>
 +
|}
 +
 
 +
* 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 ===
 +
{| class="wikitable" style="width:50%;"
 +
|-
 +
! Currency !! Rarity
 +
|-
 +
|style="vertical-align: top;"|
 +
{{Icon|A = Gold}} Gold
 +
 
 +
{{Icon|A = Medal|30px}} Medal
 +
 
 +
{{Icon|A = Gem|30px}} Gem
 +
|style="vertical-align: top;"|
 +
{{Icon|B = Worn|30px}} Worn
 +
 
 +
{{Icon|B = Sturdy|30px}} Sturdy
 +
 
 +
{{Icon|B = Powerful|30px}} Powerful
 +
 
 +
{{Icon|B = Epic|30px}} Epic
 +
 
 +
{{Icon|B = Mythical|30px}} Mythical
 +
 
 +
{{Icon|B =Legendary|30px}} Legendary
 +
 
 +
{{Icon|B = Godly|30px}} Godly
 +
 
 +
{{Icon|B = Ancient|30px}} Ancient
 +
|}
 +
__NOEDITSECTION__
 +
</noinclude>

Latest revision as of 10:34, 6 May 2026

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

Gold 18px Gold

Medal 18px Medal

Gem 18px Gem

18px Worn Worn

18px Sturdy Sturdy

18px Powerful Powerful

18px Epic Epic

18px Mythical Mythical

18px Legendary Legendary

18px Godly Godly

18px Ancient Ancient