Template:Tile: Difference between revisions
remove spacing |
Add template category |
||
Line 23: | Line 23: | ||
| tune || <code><nowiki>{{Tile|tune|68}}</nowiki></code> || {{Tile|tune|68}} | | tune || <code><nowiki>{{Tile|tune|68}}</nowiki></code> || {{Tile|tune|68}} | ||
|} | |} | ||
[[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> |
Revision as of 21:11, 30 August 2022
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.tw/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}} |