Template:Tile: Difference between revisions
template data |
No edit summary |
||
Line 33: | Line 33: | ||
"layer" | "layer" | ||
], | ], | ||
"label": " | "label": "Layer", | ||
"description": "The layer where the tile is located.", | "description": "The layer where the tile is located.", | ||
"example": "game", | "example": "game", | ||
Line 52: | Line 52: | ||
"index" | "index" | ||
], | ], | ||
"label": " | "label": "Index", | ||
"description": "The index of the tile.", | "description": "The index of the tile.", | ||
"example": "1", | "example": "1", |
Revision as of 08:54, 11 February 2023
Usage: {{Tile|layer|index}}
. No image is displayed if the layer name is misspelled or no tile exists at that index on the layer. Use ddnet.org/explain to determine indices of tiles. This can be used in combination with Template:TileLink
Examples
Layer | code | preview |
---|---|---|
entities | {{Tile|entities|1}} |
|
game | {{Tile|game|3}} |
|
front | {{Tile|front|66}} |
|
tele | {{Tile|tele|26}} |
|
speedup | {{Tile|speedup|28}} |
|
switch | {{Tile|switch|22}} |
|
tune | {{Tile|tune|68}} |
A tile link with a icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Layer | 1 layer | The layer where the tile is located.
| String | required |
Index | 2 index | The index of the tile.
| Number | required |