Template:Icon: Difference between revisions

From Mechabellum Wiki
(add border, remove spaces)
mNo edit summary
Line 1: Line 1:
<div class="icon icon-{{{type|}}} {{#ifeq:{{{border|no}}}|no||icon-border}}"><!--
<span class="icon icon-{{{type|}}} {{#ifeq:{{{border|no}}}|no||icon-border}}"><!--
-->[[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>
--></span>
<noinclude>
<noinclude>
<templatedata>
<templatedata>

Revision as of 18:17, 31 May 2023

Redeployment.png

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
File Namefile

no description

Filerequired
Typetype

Type of the icon. Allows type specific styling.

Suggested values
Tech Equipment Upgrade Skill
Stringrequired
Costcost

Hidden when not set

Numbersuggested
Borderborder

Enable border. Empty or "no" is no border all other values show a border.

Default
no
Auto value
no
Booleanoptional
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