Difference between revisions of "Template:Icon"
From Dungeon Defenders 2 Wiki
m (Test) |
m |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#switch: {{{ | + | {{#switch:{{{1|}}} |
| − | + | <!--Currency--> | |
| − | |gold = Gold Icon | + | | currency = {{#switch:{{{2|}}} |
| − | |medal = Defender Medal Icon | + | |gold = [[File:Gold Icon.png|18px]] |
| − | |gem = Gem Icon | + | |medal = [[File:Defender Medal Icon.png|18px]] |
| − | + | |gem = [[File:Gem Icon.png|18px]] | |
| − | + | }} | |
<!--rarity--> | <!--rarity--> | ||
| − | |worn = Worn Icon | + | | rarity = {{#switch:{{{2|}}} |
| − | |sturdy = Sturdy Icon | + | |worn = <span style="color:#808080"> [[File:Worn Icon.png|18px]] Worn </span> |
| − | |powerful = Powerful Icon | + | |sturdy = <span style="color:#808000"> [[File:Sturdy Icon.png|18px]] Sturdy </span> |
| − | |epic = Epic Icon | + | |powerful = <span style="color:#008000"> [[File:Powerful Icon.png|18px]] Powerful </span> |
| − | |mythical = Mythical Icon | + | |epic = <span style="color:#3366FF"> [[File:Epic Icon.png|18px]] Epic </span> |
| − | |legendary = Legendary Icon | + | |mythical = <span style="color:#ff00ff"> [[File:Mythical Icon.png|18px]] Mythical </span> |
| − | |godly = Godly Icon | + | |legendary = <span style="color:#FFF380"> [[File:Legendary Icon.png|18px]] Legendary </span> |
| − | |ancient = Ancient Icon | + | |godly = <span style="color:#40E0D0"> [[File:Godly Icon.png|18px]] Godly </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| | + | {{Icon|currency|gold}} Gold |
| − | {{Icon| | + | {{Icon|currency|medal}} Defender Medal |
| − | {{Icon| | + | {{Icon|currency|gem}} Gem |
| − | |style="vertical-align: top;"| | + | |style="vertical-align: top;width:25%;"| |
| − | {{Icon| | + | {{Icon|rarity|worn}} |
| − | {{Icon| | + | {{Icon|rarity|sturdy}} |
| − | {{Icon| | + | {{Icon|rarity|powerful}} |
| − | {{Icon| | + | {{Icon|rarity|epic}} |
| − | {{Icon| | + | {{Icon|rarity|mythical}} |
| − | {{Icon| | + | {{Icon|rarity|legendary}} |
| − | {{Icon| | + | {{Icon|rarity|godly}} |
| − | {{Icon| | + | {{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 |
|---|---|---|