Template:Magia Record Formation/cell: Difference between revisions
Jump to navigation
Jump to search
(Make the effect icons a tiny bit bigger, but scale them by the size of the cell) |
(Whoop, that should've been ifexpr) |
||
Line 7: | Line 7: | ||
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={{#ifexpr:(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={{#ifexpr:(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={{#ifexpr:(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={{#ifexpr:(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={{#ifexpr:(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> |
Latest revision as of 05:16, 25 August 2023
|style="border: solid 4px #375C95; width: 110px; background: #264478;"|