Difference between revisions of "Template:Icon"
From Dungeon Defenders 2 Wiki
Palo Frogger (talk | contribs) m (Test) |
m |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | [[File:{{#switch: {{{A| | + | {{#if: {{{A}}} | [[File:{{#switch:{{lc:{{{A|1}}}}} |
<!--Curency--> | <!--Curency--> | ||
| − | | gold = Gold Icon | + | |gold = Gold Icon |
| − | | medal = Defender Medal | + | |medal = Defender Medal Icon |
| − | | gem = Gem Icon | + | |gem = Gem Icon |
| − | }}|{{{ | + | }}.png|{{{A|2}}}|18px]] | }} |
| − | [[File:{{#switch: {{{B| | + | {{#if: {{{B}}} | [[File:{{#switch:{{lc:{{{B|1}}}}} |
| − | <!-- | + | <!--rarity--> |
| − | | worn = Worn Icon | + | |worn = Worn Icon |
| − | | sturdy = Sturdy Icon | + | |sturdy = Sturdy Icon |
| − | | powerful = Powerful Icon | + | |powerful = Powerful Icon |
| − | }}|{{ | + | |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 | + | {{Icon|A = Gold}} Gold |
{{Icon|A = Medal|30px}} Medal | {{Icon|A = Medal|30px}} Medal | ||
| Line 36: | Line 41: | ||
{{Icon|A = Gem|30px}} Gem | {{Icon|A = Gem|30px}} Gem | ||
|style="vertical-align: top;"| | |style="vertical-align: top;"| | ||
| − | {{Icon|Worn|30px}} Worn | + | {{Icon|B = Worn|30px}} Worn |
{{Icon|B = Sturdy|30px}} Sturdy | {{Icon|B = Sturdy|30px}} Sturdy | ||
| − | {{Icon|Powerful|30px}} Powerful | + | {{Icon|B = Powerful|30px}} Powerful |
| − | {{Icon|Epic|30px}} Epic | + | {{Icon|B = Epic|30px}} Epic |
| − | {{Icon|Mythical|30px}} Mythical | + | {{Icon|B = Mythical|30px}} Mythical |
| − | {{Icon|Legendary|30px}} Legendary | + | {{Icon|B =Legendary|30px}} Legendary |
| − | {{Icon|Godly|30px}} Godly | + | {{Icon|B = Godly|30px}} Godly |
| − | {{Icon|Ancient|30px}} Ancient | + | {{Icon|B = Ancient|30px}} Ancient |
|} | |} | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
</noinclude> | </noinclude> | ||
Latest revision as of 10:34, 6 May 2026
|
Usage: |
Example: |
- 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 |
|---|---|
|
|
18px
18px
18px
18px
18px
18px
18px
18px
|