We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.

Šablona:Data value table

Z Minecraft Wiki
Přejít na: navigace, hledání
[view | edit | history | purge]Documentation

A 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:

DV Description

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
[view | edit | history | purge]The above documentation is transcluded from Šablona:Data value table/doc.