本站文本内容除另有声明外,转载时均必须注明出处。(详情…本站文本内容除另有声明外,转载时均必须注明出处。(详情…中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!Minecraft中文Wiki微博正在更新!或许有兴趣去看看Minecraft中文Wiki微博正在更新!或许有兴趣去看看想与其他用户进行编辑上的沟通?社区专页正是为此创建的。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。需要管理员的协助?在管理员告示板留言也许可以帮到您。需要管理员的协助?在管理员告示板留言也许可以帮到您。
各位用户:为了让我们能更好了解您的需求,提供更优良的服务,请帮助我们填写一份问卷。编者问卷读者问卷(需要花费7分钟左右)

Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Template:SchematicSprite

来自Minecraft Wiki
跳转至: 导航搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面
Template-info.png 模板资料

This template displays a block sprite built from File:SchematicSprite.png.

Usage[编辑源代码]

SchematicSprite can take one named parameter and any number of unnamed parameters:

{{SchematicSprite|size=<size>|sprite1|sprite2|…}}

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

Sprite sheet for SchematicSprite

A sprite parameter identifies the sprite to be displayed from the sprite sheet on the right.

If the sprite parameter is not recognized as a valid sprite identifier, it is simply displayed as center-aligned text within the sprite's bounding box. 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, or numbers representing light levels or distance). HTML character entity references may be needed for some characters, such as &#124; for the pipe character: |, or &#61; for an equals sign.

When multiple sprite parameters are defined, the resulting sprites or text are stacked on top of each other, from bottom to top in the order they were defined.

Examples[编辑源代码]

Empty parameters

{{SchematicSprite}} omitting the sprite parameter produces a blank sprite (i.e., air)

{{SchematicSprite|}} a defined but empty sprite parameter also produces a blank sprite
Characters
A {{SchematicSprite|A}} displaying a single character
A {{SchematicSprite|size=16|A}} text scales to sprite size (size=16)
{{SchematicSprite|&rarr;}} displaying an HTML character entity reference
{{SchematicSprite|Q&#x305;}} using an HTML character entity reference to combine a character with a diacritical mark
15 {{SchematicSprite|15}} two characters usually fit…
MM {{SchematicSprite|MM}} …but some do not — text that doesn't fit aligns to the left edge and overflows to the right
Sprite identifiers

{{SchematicSprite|grass block}} displaying a sprite predefined by a sprite identifier
Stacked sprites


{{SchematicSprite|SB|rd-!}} redstone dust on block of gold

A
{{SchematicSprite|size=24|SB|A}} text on block of gold

A
{{SchematicSprite|obsidian|A}} text has a blurred white shadow behind it, to help it show up against dark backgrounds

SchematicSprites can also appear in the flow of text, like this:



.

List of identifiers[编辑源代码]

An identifier is a string of characters that specify which sprite to display.

Basic identifiers

Redstone identifiers

See also[编辑源代码]


[查看 | 编辑 | 历史 | 清除缓存]上述文档是从Template:SchematicSprite/doc引用的。