Difference between revisions of "Template:Icon"
From Dungeon Defenders 2 Wiki
(Test) |
m |
||
| (4 intermediate revisions by the same user not shown) | |||
| 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 16: | Line 16: | ||
|godly = <span style="color:#40E0D0"> [[File:Godly Icon.png|18px]] Godly </span> | |godly = <span style="color:#40E0D0"> [[File:Godly Icon.png|18px]] Godly </span> | ||
|ancient = <span style="color:#DD1F13"> [[File:Ancient Icon.png|18px]] Ancient </span> | |ancient = <span style="color:#DD1F13"> [[File:Ancient Icon.png|18px]] Ancient </span> | ||
| + | }} | ||
| + | <!--checkbox--> | ||
| + | | checkbox = {{#switch:{{{2|}}} | ||
| + | |yes = [[File:TickGreen.png]] | ||
| + | |no = [[File:CrossWhite.png]] | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
--><noinclude> | --><noinclude> | ||
| − | {| style="text-align: center; width: | + | {| style="text-align: center; width:75%;" |
|- | |- | ||
| | | | ||
| − | '''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 automatically have the wording beside their respective icons. | ||
=== Available Inputs === | === Available Inputs === | ||
| − | {| class="wikitable" style="width: | + | {| class="wikitable" style="width:75%;" |
|- | |- | ||
| − | ! Currency !! Rarity | + | ! Currency !! Rarity !! Checkbox |
|- | |- | ||
| − | |style="vertical-align: top;"| | + | |style="vertical-align: top; width:25%;"| |
| − | {{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;width:25%;"| |
{{Icon|rarity|worn}} | {{Icon|rarity|worn}} | ||
| Line 58: | Line 64: | ||
{{Icon|rarity|ancient}} | {{Icon|rarity|ancient}} | ||
| + | |style="vertical-align: top; width:25%;"| | ||
| + | {{Icon|checkbox|yes}} Yes | ||
| + | |||
| + | {{Icon|checkbox|no}} No | ||
|} | |} | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:04, 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 automatically have the wording beside their respective icons.
Available Inputs
| Currency | Rarity | Checkbox |
|---|---|---|