Template:Infobox NaviCust part/grid: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<div class="navicust-grid" style="--part-color: {{#switch: {{#explode:{{{colors|}}}|,|0}}
<div class="navicust-grid" style="--part-fill: {{#switch: {{#explode:{{{colors|}}}|,|0}}
|Red=#de1000
|Red=#de1000
|Pink=#de8cc6
|Pink=#de8cc6
Line 9: Line 9:
|Purple=#9400ce
|Purple=#9400ce
|Gray=#848484
|Gray=#848484
}}">
}}; --part-stroke: {{#switch: {{#explode:{{{colors|}}}|,|0}}
|Red=#bd0000
|Pink=#bd6ba5
|Yellow=#bdbd00
|Green=#00a500
|Blue=#0860b8
|White=#bdbdbd
|Orange=#bd5a00
|Purple=#7300ad
|Gray=#636363
}} ">
{{#arraymap:{{{mask|}}}|\n|PLACEHOLDER|
{{#arraymap:{{{mask|}}}|\n|PLACEHOLDER|
   {{#arraymap:PLACEHOLDER||PLACEHOLDER|<div class="navicust-grid__cell {{#ifeq: PLACEHOLDER|X|navicust-grid__cell-filled||}}">PLACEHOLDER</div>|\s}}
   {{#arraymap:PLACEHOLDER||PLACEHOLDER|<div class="navicust-grid__cell {{#ifeq: PLACEHOLDER|X|navicust-grid__cell-filled||}}">PLACEHOLDER</div>|\s}}

Revision as of 03:10, 19 October 2022