Template:Tile: Difference between revisions

From DDraceNetwork
(template data)
m (Reverted edits by Zwelf (talk) to last revision by Ryozuki)
Tag: Rollback
 
(3 intermediate revisions by 2 users not shown)
Line 24: Line 24:
|}
|}
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><span class="display-tile {{{1}}}" style="background-position: -{{#expr: ( {{{2}}} mod 16) * 32}}px -{{#expr: (floor({{{2}}} div 16)) * 32}}px;"></span></includeonly>
</noinclude><includeonly><span class="display-tile {{{1}}}" style="background-position: -{{#expr: ( {{{2}}} mod 16) * 32}}px -{{#expr: (floor({{{2}}} div 16)) * 32}}px;"></span></includeonly><noinclude><templatedata>
<noinclude>
<templatedata>
{
{
"params": {
"params": {
Line 33: Line 31:
"layer"
"layer"
],
],
"label": "The layer where the tile is located.",
"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 50:
"index"
"index"
],
],
"label": "The index of the tile.",
"label": "Index",
"description": "The index of the tile.",
"description": "The index of the tile.",
"example": "1",
"example": "1",

Latest revision as of 22:12, 3 August 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

Caption text
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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Layer1 layer

The layer where the tile is located.

Suggested values
game front tele speedup entities switch tune
Example
game
Stringrequired
Index2 index

The index of the tile.

Example
1
Numberrequired