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_{{#ifeq:{{{solid|}}}|true|solid|nonsolid}}" style="--part-fill: {{#switch: {{#explode:{{{colors|}}}|,|0}}
<div class="navicust-grid navicust-grid--{{#ifeq:{{{solid|}}}|true|solid|nonsolid}}" style="--part-fill: {{#switch: {{#explode:{{{colors|}}}|,|0}}
|Red=#de1000
|Red=#de1000
|Pink=#de8cc6
|Pink=#de8cc6
Line 21: Line 21:
}} ">
}} ">
{{#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>

Revision as of 03:12, 19 October 2022