Difference between revisions of "Template:Icon"
From Dungeon Defenders 2 Wiki
Palo Frogger (talk | contribs) m (Got to figure out why adding text still breaks the template despite having a <noinclude> wrapper.) |
Palo Frogger (talk | contribs) m (Undo revision 24613 by Palo Frogger (talk)) |
||
| (17 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{#if: {{{A}}} | [[File:{{#switch:{{lc:{{{A|1}}}}} | |
<!--Curency--> | <!--Curency--> | ||
|gold = Gold Icon | |gold = Gold Icon | ||
|medal = Defender Medal Icon | |medal = Defender Medal Icon | ||
|gem = Gem Icon | |gem = Gem 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|{{{2|18px}}}]]< | + | }}.png|{{{B|2|18px}}}]] | }}<!-- |
| − | |||
| − | |||
| + | --><noinclude> | ||
{| style="text-align: center; width:50%;" | {| style="text-align: center; width:50%;" | ||
|- | |- | ||
| Line 34: | Line 35: | ||
|- | |- | ||
|style="vertical-align: top;"| | |style="vertical-align: top;"| | ||
| − | {{Icon|Gold | + | {{Icon|A = Gold}} Gold |
| − | {{Icon|Medal|30px}} Medal | + | {{Icon|A = Medal|30px}} Medal |
| − | {{Icon|Gem|30px}} Gem | + | {{Icon|A = Gem|30px}} Gem |
|style="vertical-align: top;"| | |style="vertical-align: top;"| | ||
{{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 | ||
| Line 56: | Line 57: | ||
{{Icon|Ancient|30px}} Ancient | {{Icon|Ancient|30px}} Ancient | ||
|} | |} | ||
| − | + | __NOEDITSECTION__ | |
</noinclude> | </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
|