Difference between revisions of "Template:Icon"
From Dungeon Defenders 2 Wiki
(Test) |
m |
||
| Line 2: | Line 2: | ||
<!--Currency--> | <!--Currency--> | ||
| currency = {{#switch:{{{2|}}} | | currency = {{#switch:{{{2|}}} | ||
| − | |gold = [[File:Gold Icon.png|18px]] | + | |gold = [[File:Gold Icon.png|18px]] |
| − | |medal = [[File:Defender Medal Icon.png|18px]] | + | |medal = [[File:Defender Medal Icon.png|18px]] |
| − | |gem = [[File:Gem Icon.png|18px]] | + | |gem = [[File:Gem Icon.png|18px]] |
}} | }} | ||
<!--rarity--> | <!--rarity--> | ||
| Line 23: | Line 23: | ||
|- | |- | ||
| | | | ||
| − | '''Usage:''' <br> <code><nowiki>{{</nowiki>Icon|'' | + | '''Usage:''' <br> <code><nowiki>{{</nowiki>Icon|''category''|''type''<nowiki>}}</nowiki></code> |
|| | || | ||
| − | '''Example:''' <br> <code><nowiki>{{</nowiki>Icon| | + | '''Example:''' <br> <code><nowiki>{{</nowiki>Icon|rarity|powerful<nowiki>}}</nowiki></code> |
|} | |} | ||
| − | * | + | * Current default size 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. | * Accepted inputs are not case-sensitive. But for consistency, probably best to stick to having the first letter of each input in upper-case. | ||
| + | * Only the rarity category will have the wording beside their respective icons. | ||
=== Available Inputs === | === Available Inputs === | ||
| Line 37: | Line 38: | ||
|- | |- | ||
|style="vertical-align: top;"| | |style="vertical-align: top;"| | ||
| − | {{Icon|currency|gold}} | + | {{Icon|currency|gold}} Gold |
| − | {{Icon|currency|medal}} | + | {{Icon|currency|medal}} Defender Medal |
| − | {{Icon|currency|gem}} | + | {{Icon|currency|gem}} Gem |
|style="vertical-align: top;"| | |style="vertical-align: top;"| | ||
{{Icon|rarity|worn}} | {{Icon|rarity|worn}} | ||
Revision as of 13:31, 22 June 2026
|
Usage: |
Example: |
- Current default size 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.
- Only the rarity category will have the wording beside their respective icons.
Available Inputs
| Currency | Rarity |
|---|---|