Template:Icon

From Mechabellum Wiki
Revision as of 20:59, 28 May 2023 by HUBA (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Redeployment.png

Wrapper for icons. Display cost as colorize depending on type.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
File Namefile

no description

Filerequired
Costcost

Hidden when not set

Numbersuggested
Typetype

Type of the icon. Allows type specific styling.

Suggested values
Tech Equipment Upgrade Skill
Stringrequired
Sizesize

Image size (xs = 24px, sm = 32px, md = 48px, lg = 64px, xl = 96px) Default lg=64px

Suggested values
xs sm md lg xl
Default
64px
Auto value
lg
Stringoptional