[ล้างแคช]
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more informationA template to generate tables for block/item data values.
Parameters:
spritetype: the type of sprite to use - item or block. Defaults to block.sprite: the name of the sprite - see Template:ItemSprite and Template:BlockSprite for available values. Defaults to air.dv: used to manually set the data value, instead of counting sequentially.foot=1: must be used at the end of a table to make sure the next table on the page starts at data value 0.- An unnamed parameter provides a description.
Example usage:
{{dvt|spritetype=block|sprite=huge-mushroom-pores|Pores on all sides}}
{{dvt|spritetype=block|sprite=huge-mushroom|Cap texture on top, west and north}}
{{dvt|spritetype=block|sprite=huge-mushroom|Cap texture on top and north}}
{{dvt|spritetype=block|sprite=huge-mushroom|Cap texture on top, north and east}}
{{dvt|spritetype=block|sprite=huge-mushroom-pores|Cap texture on top and west}}
{{dvt|spritetype=block|sprite=huge-mushroom-pores|Cap texture on top}}
{{dvt|spritetype=block|sprite=huge-mushroom-pores|Cap texture on top and east}}
{{dvt|spritetype=block|sprite=huge-mushroom-pores|Cap texture on top, south and west}}
{{dvt|spritetype=block|sprite=huge-mushroom-pores|Cap texture on top and south}}
{{dvt|spritetype=block|sprite=huge-mushroom-pores|Cap texture on top, east and south}}
{{dvt|spritetype=block|sprite=huge-mushroom-stalk|Stem texture on all four sides, pores on top and bottom}}
{{dvt|dv=11}}
{{dvt|dv=12}}
{{dvt|dv=13}}
{{dvt|spritetype=block|sprite=huge-mushroom|Cap texture on all six sides}}
{{dvt|spritetype=block|sprite=huge-mushroom-stalk|Stem texture on all six sides|foot=1}}
produces:
| ค่าข้อมูล | คำอธิบาย | |
|---|---|---|
| 0 | Pores on all sides | |
| 1 | Cap texture on top, west and north | |
| 2 | Cap texture on top and north | |
| 3 | Cap texture on top, north and east | |
| 4 | Cap texture on top and west | |
| 5 | Cap texture on top | |
| 6 | Cap texture on top and east | |
| 7 | Cap texture on top, south and west | |
| 8 | Cap texture on top and south | |
| 9 | Cap texture on top, east and south | |
| 10 | Stem texture on all four sides, pores on top and bottom | |
| 11 | (unused) | |
| 12 | (unused) | |
| 13 | (unused) | |
| 14 | Cap texture on all six sides | |
| 15 | Stem texture on all six sides |