Template:Infobox NaviCust part/grid: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<div class="navicust-grid navicust-grid--{{#switch:{{{type|}}}|Solid=solid|Plus=plus}}" style="--part-fill: {{#switch: {{#explode:{{{colors|}}}|,|0}}
<div class="navicust-grid navicust-grid--{{#switch:{{{type|}}}|Solid=solid|Plus=plus}}" style="--part-fill: {{NaviCust color/fill|{{#explode:{{{colors|}}}|,|0}}}}; --part-stroke: {{NaviCust color/stroke|{{#explode:{{{colors|}}}|,|0}}}}; grid-template-columns: repeat({{{width|}}}, 28px); grid-template-rows: repeat({{{height|}}}, 28px);">
|Red=#de1000
|Pink=#de8cc6
|Yellow=#dede00
|Green=#18c600
|Blue=#2984de
|White=#dedede
|Orange=#de7b00
|Purple=#9400ce
|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
}}; grid-template-columns: repeat({{{width|}}}, 28px); grid-template-rows: repeat({{{height|}}}, 28px);">
{{#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 20:21, 19 October 2022