Template:Storage grid: Difference between revisions
No edit summary |
bb order |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
-->{{#invoke: Storage grid|main}}</includeonly><noinclude> | -->{{#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}} | {{uses template styles}} | ||
Line 40: | Line 41: | ||
"mode": { | "mode": { | ||
"label": "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).", | "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", | "type": "line", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Position x Position", | "Position x Position", | ||
"Position x Size" | "Position x Size", | ||
"Pos Pos", | |||
"Pos Size" | |||
], | ], | ||
"default": "Position x Position", | "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 53: | Line 63: | ||
"paramOrder": [ | "paramOrder": [ | ||
"mode", | "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 |