Template:Storage grid/doc: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
Aliser (talk | contribs)
support for mode
 
Line 3: Line 3:


== Example ==
== Example ==
=== Single grid ===
=== Position x Position mode (for YML grids, default) ===
==== Single grid ====
A simple 1x2 grid.
A simple 1x2 grid.


{{tji|storage grid|0,0,1,2}}
{{tji|storage grid|0,0,0,1}}


{{gda}}
{{gda}}


{{storage grid|0,0,1,2}}
{{storage grid|0,0,0,1}}


=== Two grids ===
==== Two grids ====
A 1x4 and 2x4 grids with one-cell-wide empty space in between.
A 1x4 and 2x4 grids with one-cell-wide empty space in between.


{{tji|storage grid|0,0,1,4|2,0,2,4}}
{{tji|storage grid|0,0,0,3|2,0,3,3}}


{{gda}}
{{gda}}


{{storage grid|0,0,1,4|2,0,2,4}}
{{storage grid|0,0,0,3|2,0,3,3}}


=== Three grids ===
==== Three grids ====
A 2x4, 2x3 and 2x4 grids with one-cell-wide empty space in between each.
A 2x4, 2x3 and 2x4 grids with one-cell-wide empty space in between each.


{{tji|storage grid|0,0,2,4|3,1,2,3|6,0,2,4}}
{{tji|storage grid|0,0,1,3|2,1,3,3|5,0,1,3}}


{{gda}}
{{gda}}


{{storage grid|0,0,2,4|3,1,2,3|6,0,2,4}}
{{storage grid|0,0,1,3|3,1,4,3|6,0,7,3}}
 
=== Position x Size mode (alternative mode) ===
==== Single grid ====
A simple 1x2 grid.
 
{{tji|storage grid|mode:pos size|0,0,1,2}}
 
{{gda}}
 
{{storage grid|mode=pos size|0,0,1,2}}
 
==== Two grids ====
A 1x4 and 2x4 grids with one-cell-wide empty space in between.
 
{{tji|storage grid|mode:pos size|0,0,1,4|2,0,2,4}}
 
{{gda}}
 
{{storage grid|mode=pos size|0,0,1,4|2,0,2,4}}
 
==== Three grids ====
A 2x4, 2x3 and 2x4 grids with one-cell-wide empty space in between each.
 
{{tji|storage grid|mode:pos size|0,0,2,4|3,1,2,3|6,0,2,4}}
 
{{gda}}
 
{{storage grid|mode=pos size|0,0,2,4|3,1,2,3|6,0,2,4}}

Latest revision as of 05:13, 30 March 2025

Usage

{{storage grid|<grid 1>|<grid 2>|<grid N>}}

Example

Position x Position mode (for YML grids, default)

Single grid

A simple 1x2 grid.

{{storage grid|0,0,0,1}}

Two grids

A 1x4 and 2x4 grids with one-cell-wide empty space in between.

{{storage grid|0,0,0,3|2,0,3,3}}

Three grids

A 2x4, 2x3 and 2x4 grids with one-cell-wide empty space in between each.

{{storage grid|0,0,1,3|2,1,3,3|5,0,1,3}}

Position x Size mode (alternative mode)

Single grid

A simple 1x2 grid.

{{storage grid|mode=pos size|0,0,1,2}}

Two grids

A 1x4 and 2x4 grids with one-cell-wide empty space in between.

{{storage grid|mode=pos size|0,0,1,4|2,0,2,4}}

Three grids

A 2x4, 2x3 and 2x4 grids with one-cell-wide empty space in between each.

{{storage grid|mode=pos size|0,0,2,4|3,1,2,3|6,0,2,4}}