Minecraft Wiki
Advertisement

Template:Doc/start

This template is still in development and should not be used in production articles yet.

This template displays a grid of block sprites built from File:SchematicSprite.png.

Usage

Schematic uses named parameters to modify the schematic's default appearance, and unnamed parameters to define the sprites used in the schematic:

{{Schematic
|caption=<caption>
|float=<float>
|size=<size>
|<param1>|<param2>|…
}}

The caption parameter may be added to create a caption under the schematic. Adding a caption automatically also creates a box surrounding the schematic and caption, and floats the box to page right.

The float parameter may be added to change the side to which the schematic floats if a caption is added. The only value recognized is left -- anything else defaults back to floating to the right.

A schematic with no caption or float parameters acts like any other wiki table, ending the previous line and pushing subsequent text to a new line.

The size parameter may be added to specify the width and height of the sprite cells in pixels. Its value should be a simple number with no units added (e.g., size=16). If omitted, size defaults to 32.

The param parameters specify the content of the schematic. When multiple params are defined, the resulting sprites or text are displayed in individual table cells, one after the other, unless a plus sign is used to stack them in the same cell.

SchematicSprite

Sprite sheet for Schematic

  • A sprite identifier (see list below) displays a sprite from the image on the right.
  • A plus sign (+) indicates that the next parameter should be stacked on top of the previous parameter, rather than starting a new cell.
  • A dash (-) starts a new row.
  • Anything else is simply displayed as center-aligned text within the cell's bounding box (empty parameters or whitespace parameters are displayed as empty cells).
    • Overflow text is not displayed, so this is primarily intended to be used to display one or two characters in a schematic (such as input and output locations, feature markers to be referenced in text, numbers representing light levels or distance, etc.).
    • HTML character entity references may be needed for some characters, such as &#124; for the pipe character: |, &#61; for an equals sign, &#43; for a plus sign (to be displayed as text rather than stacking the next param), or &#45; for a dash (to be displayed as text rather than starting a new row).

Examples

Template:Doc/end

Advertisement