Template:Magia Record Formation/cell: Difference between revisions
Jump to navigation
Jump to search
(Broke background colour) |
(Make the effect icons a tiny bit bigger, but scale them by the size of the cell) |
||
Line 4: | Line 4: | ||
}};"|<div style="position:relative">{{#if: | }};"|<div style="position:relative">{{#if: | ||
{{{effect|}}}| | {{{effect|}}}| | ||
<div style="position:absolute; top:-{{#expr:{{{size|110}}} / 2 - | <div style="position:absolute; top:-{{#expr:{{{size|110}}} / 2 - floor({{{size|110}}} / 25) * 5}}px; left:5px;"><!-- | ||
Explanation of the above formula: move up by cell size divided by 2, minus the size of the icon | 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= | {{#if:{{#explode:{{{effect|}}}|,|0}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|0}}|size={{#if:{{#expr:(floor({{{size|110}}} / 25) * 5) < 10}}|10|{{#expr:floor({{{size|110}}} / 25) * 5}}}}px}}}} | ||
{{#if:{{#explode:{{{effect|}}}|,|1}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|1}}|size= | {{#if:{{#explode:{{{effect|}}}|,|1}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|1}}|size={{#if:{{#expr:(floor({{{size|110}}} / 25) * 5) < 10}}|10|{{#expr:floor({{{size|110}}} / 25) * 5}}}}px}}}} | ||
{{#if:{{#explode:{{{effect|}}}|,|2}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|2}}|size= | {{#if:{{#explode:{{{effect|}}}|,|2}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|2}}|size={{#if:{{#expr:(floor({{{size|110}}} / 25) * 5) < 10}}|10|{{#expr:floor({{{size|110}}} / 25) * 5}}}}px}}}} | ||
{{#if:{{#explode:{{{effect|}}}|,|3}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|3}}|size= | {{#if:{{#explode:{{{effect|}}}|,|3}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|3}}|size={{#if:{{#expr:(floor({{{size|110}}} / 25) * 5) < 10}}|10|{{#expr:floor({{{size|110}}} / 25) * 5}}}}px}}}} | ||
{{#if:{{#explode:{{{effect|}}}|,|4}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|4}}|size= | {{#if:{{#explode:{{{effect|}}}|,|4}}|{{Magia Record Skill Icon|{{#explode:{{{effect|}}}|,|4}}|size={{#if:{{#expr:(floor({{{size|110}}} / 25) * 5) < 10}}|10|{{#expr:floor({{{size|110}}} / 25) * 5}}}}px}}}} | ||
</div> | </div> | ||
}}{{#if:{{{attr|}}}|{{#ifeq:{{{attr|}}}|none||{{Magia Record Attribute|{{{attr}}}}}}}}}</div> | }}{{#if:{{{attr|}}}|{{#ifeq:{{{attr|}}}|none||{{Magia Record Attribute|{{{attr}}}}}}}}}</div> |
Revision as of 05:14, 25 August 2023
|style="border: solid 4px #375C95; width: 110px; background: #264478;"|