Difference between revisions of "Template:Icon"
From Dungeon Defenders 2 Wiki
Palo Frogger (talk | contribs) m |
Palo Frogger (talk | contribs) m (Undo revision 24613 by Palo Frogger (talk)) |
||
| (36 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{#if: {{{A}}} | [[File:{{#switch:{{lc:{{{A|1}}}}} | |
| − | | gold = Gold Icon | + | <!--Curency--> |
| − | | gem = Gem Icon.png | + | |gold = Gold Icon |
| − | | | + | |medal = Defender Medal Icon |
| − | | worn = Worn Icon | + | |gem = Gem Icon |
| − | | sturdy = Sturdy Icon | + | }}.png|{{{A|2|18px}}}]] | }} |
| − | | powerful = Powerful Icon | + | {{#if: {{{B}}} | [[File:{{#switch:{{lc:{{{B|1}}}}} |
| − | | epic = Epic Icon | + | <!--rarity--> |
| − | | mythical = Mythical Icon | + | |worn = Worn Icon |
| − | | legendary = Legendary Icon | + | |sturdy = Sturdy Icon |
| − | | godly = Godly Icon | + | |powerful = Powerful Icon |
| − | | ancient = Ancient Icon.png | + | |epic = Epic Icon |
| − | | | + | |mythical = Mythical Icon |
| − | }}| {{{ | + | |legendary = Legendary Icon |
| + | |godly = Godly Icon | ||
| + | |ancient = Ancient Icon | ||
| + | }}.png|{{{B|2|18px}}}]] | }}<!-- | ||
| + | |||
| + | --><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|Worn|30px}} Worn | ||
| + | |||
| + | {{Icon|B = Sturdy|30px}} Sturdy | ||
| + | |||
| + | {{Icon|Powerful|30px}} Powerful | ||
| + | |||
| + | {{Icon|Epic|30px}} Epic | ||
| + | |||
| + | {{Icon|Mythical|30px}} Mythical | ||
| + | |||
| + | {{Icon|Legendary|30px}} Legendary | ||
| + | |||
| + | {{Icon|Godly|30px}} Godly | ||
| + | |||
| + | {{Icon|Ancient|30px}} Ancient | ||
| + | |} | ||
| + | __NOEDITSECTION__ | ||
| + | </noinclude> | ||
Latest revision as of 22:41, 2 November 2025
|
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 |
|---|---|
|
|
2
|