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)))
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table><tr><td>{{{mask|}}}</tr></td></table>
<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);">
{{#arraymap:{{{mask|}}}|\n|PLACEHOLDER|
  {{#arraymap:PLACEHOLDER||PLACEHOLDER|<div class="navicust-grid__cell {{#ifeq: PLACEHOLDER|X|navicust-grid__cell--filled||}}">PLACEHOLDER</div>|\s}}
|\s}}
</div>
<templatestyles src="Infobox NaviCust part/grid/styles.css"></templatestyles>

Latest revision as of 21:02, 25 October 2022