Template:Icon: Difference between revisions
From Mechabellum Wiki
(Created page with "<div class="icon icon-{{{type}}}"> [[Image:{{{file|Redeployment.png}}}|frameless|{{#switch: {{{size|lg}}} | xs = 24px | sm = 32px | md = 48px | lg = 64px | xl = 96px }}]] {{#if:{{{cost|}}}|<span class="cost">{{{cost}}}</span>}} </div> <noinclude> <templatedata> { "params": { "file": { "label": "File Name", "type": "wiki-file-name", "required": true }, "cost": { "label": "Cost", "description": "Hidden when not set", "type": "number", "suggested...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<div class="icon icon-{{{type}}}"> | <div class="icon icon-{{{type}}}">[[Image:{{{file|Redeployment.png}}}|frameless|{{#switch: {{{size|lg}}} | xs = 24px | sm = 32px | md = 48px | lg = 64px | xl = 96px }}]] | ||
[[Image:{{{file|Redeployment.png}}}|frameless|{{#switch: {{{size|lg}}} | xs = 24px | sm = 32px | md = 48px | lg = 64px | xl = 96px }}]] | |||
{{#if:{{{cost|}}}|<span class="cost">{{{cost}}}</span>}} | {{#if:{{{cost|}}}|<span class="cost">{{{cost}}}</span>}} | ||
</div> | </div> |
Revision as of 01:03, 29 May 2023
Wrapper for icons. Display cost as colorize depending on type.
Parameter | Description | Type | Status | |
---|---|---|---|---|
File Name | file | no description | File | required |
Cost | cost | Hidden when not set | Number | suggested |
Type | type | Type of the icon. Allows type specific styling.
| String | required |
Size | size | Image size (xs = 24px, sm = 32px, md = 48px, lg = 64px, xl = 96px) Default lg=64px
| String | optional |