Template:Infobox NaviCust part/grid: Difference between revisions

Template page
No edit summary
m (Protected "Template:Infobox NaviCust part/grid" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="navicust-grid navicust-grid_{{#ifeq:{{{solid|}}}|true|solid|nonsolid}}" 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({{#len:{{#explode:{{#arraymap:{{{mask|}}}|\n|PLACEHOLDER|PLACEHOLDER,||}}|,|0}}}}, 28px); grid-template-rows: repeat({{#len:{{#arraymap:{{{mask|}}}|\n|PLACEHOLDER|.||}}}}, 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
}} ">
{{#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}}
|\s}}
|\s}}
</div>
</div>
<templatestyles src="Infobox navicust part/grid/styles.css"></templatestyles>
<templatestyles src="Infobox NaviCust part/grid/styles.css"></templatestyles>

Latest revision as of 21:02, 25 October 2022