Template:Magia Record Formation/cell: Difference between revisions
Jump to navigation
Jump to search
m (Celtic Minstrel moved page Template:Formation/cell to Template:Magia Record Formation/cell: Forgot to include "Magia Record" in the name…) |
(Support variable size, because why not!) |
||
Line 1: | Line 1: | ||
|style="border: solid 4px #375C95; background: #{{#if: | |style="border: solid 4px #375C95; width: {{{size|110}}}px background: #{{#if: | ||
{{{attr|}}} | {{{attr|}}} | ||
|F4E0CA|264478 | |F4E0CA|264478 | ||
}};"|<div style="position:relative">{{#if: | }};"|<div style="position:relative">{{#if: | ||
{{{effect|}}}| | {{{effect|}}}| | ||
<div style="position:absolute; top:- | <div style="position:absolute; top:-{{#expr:{{{size|110}}} / 2 - 15}}px; left:5px;"><!-- | ||
Explanation of the above formula: move up by cell size divided by 2, minus the size of the icon | |||
--> | |||
{{#if:{{#explode:{{{effect|}}}|,|0}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|0}}|size=15px}}}} | {{#if:{{#explode:{{{effect|}}}|,|0}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|0}}|size=15px}}}} | ||
{{#if:{{#explode:{{{effect|}}}|,|1}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|1}}|size=15px}}}} | {{#if:{{#explode:{{{effect|}}}|,|1}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|1}}|size=15px}}}} |
Revision as of 04:02, 25 August 2023
|style="border: solid 4px #375C95; width: 110px background: #264478;"|