Template:Storage grid: Difference between revisions
uses lua |
bb order |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly></includeonly><noinclude> | <includeonly><templatestyles src="Storage grid/styles.css"></templatestyles><!-- | ||
-->{{#invoke: Storage grid|main}}</includeonly><noinclude> | |||
{{docs|bb= | {{docs|bb= | ||
{{has derivative templates|Infobox storage grid}} | |||
{{uses lua|Storage grid}} | {{uses lua|Storage grid}} | ||
{{uses template styles}} | |||
}} | }} | ||
Line 33: | Line 37: | ||
"label": "Grid 5", | "label": "Grid 5", | ||
"type": "line", | "type": "line", | ||
"suggested": true | |||
}, | |||
"mode": { | |||
"label": "Mode", | |||
"description": "How to interpret the grids? If using grids defined in game YML files, use 'Position x Position' format (x1, y1, x2, y2), which is the default. Another format is 'Position x Size' (x, y, width, height). Lowercase value are allowed.", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"Position x Position", | |||
"Position x Size", | |||
"Pos Pos", | |||
"Pos Size" | |||
], | |||
"default": "Position x Position", | |||
"suggested": true | |||
}, | |||
"slot size": { | |||
"label": "Slot size", | |||
"description": "Size of a single slot.", | |||
"type": "line", | |||
"default": "2em", | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 38: | Line 62: | ||
"description": "Generates a storage grid.", | "description": "Generates a storage grid.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"mode", | |||
"slot size", | |||
"1", | "1", | ||
"2", | "2", |
Latest revision as of 18:18, 30 March 2025
Usage
{{storage grid
Example
Position x Position mode (for YML grids, default)
Single grid
A simple 1x2 grid.
{{storage grid
↓
Two grids
A 1x4 and 2x4 grids with one-cell-wide empty space in between.
{{storage grid
↓
Three grids
A 2x4, 2x3 and 2x4 grids with one-cell-wide empty space in between each.
{{storage grid
↓
Position x Size mode (alternative mode)
Single grid
A simple 1x2 grid.
{{storage grid
↓
Two grids
A 1x4 and 2x4 grids with one-cell-wide empty space in between.
{{storage grid
↓
Three grids
A 2x4, 2x3 and 2x4 grids with one-cell-wide empty space in between each.
{{storage grid
↓
Generates a storage grid.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Mode | mode | How to interpret the grids? If using grids defined in game YML files, use 'Position x Position' format (x1, y1, x2, y2), which is the default. Another format is 'Position x Size' (x, y, width, height). Lowercase value are allowed.
| Line | suggested |
Slot size | slot size | Size of a single slot.
| Line | suggested |
Grid 1 | 1 | Specify a single grid using format 'x, y, width, height'.
| Line | required |
Grid 2 | 2 | no description | Line | suggested |
Grid 3 | 3 | no description | Line | suggested |
Grid 4 | 4 | no description | Line | suggested |
Grid 5 | 5 | no description | Line | suggested |