- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
Template:Schematic
来自Minecraft基岩版开发Wiki
此模板显示一个方块缩略图网格,用来代表一个Minecraft结构(主要是红石电路和机械)。
用法[编辑]
使用无名参数来定义图例中的缩略图,有名称的参数来修改图例外观:
{{Schematic |caption=<说明文字> |captionstyle=<说明文字样式> |clear=<清空> |float=<浮动> |size=<大小> |style=<样式> |tablestyle=<表格样式> |<param1>|<param2>|... }}
- caption
- 可选的
{{{caption}}}
参数用于向图例下方创建说明文字。添加说明文字会自动在图例及说明文字周围添加图片框,并将其浮动到页面右侧。一个链接到图例帮助页面的图标会自动添加到说明文字中。
- captionstyle
- 可选的
{{{captionstyle}}}
参数用于修改说明文字区域的外观和内容。其内容应当是一个CSS声明,或一组没有括号和引号的声明(例如,captionstyle=color: red; text-align: center;
)。此参数在未指定{{{caption}}}
和{{{float}}}
参数时没有效果。
- clear
- The optional clear parameter may be added to force the schematic to drop below other floated elements. Its value may be
left
(to drop below only left-floated elements),right
(to drop below only right-floated elements),both
(to drop below all floated elements), ornone
(the default).
- float
- The optional 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.
- size
- The optional 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.
- style
- The optional style parameter may be added to change the appearance of the schematic's surrounding box. Its value should be a css declaration or declaration group with no surrounding braces or quotes (e.g.,
style=background-color: yellow;
). This parameter has no effect if caption and float are not specified.
- tablestyle
- The optional tablestyle parameter may be added to change the appearance of the schematic table. Its value should be a css declaration or declaration group with no surrounding braces or quotes (e.g.,
tablestyle=background-color: green;
).
- param
- 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.
- A sprite identifier (see list below) displays a sprite from the image on the right.
- 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
|
for the pipe character:|
,=
for an equals sign,+
for a plus sign (to be displayed as text rather than stacking the next param), or-
for a dash (to be displayed as text rather than starting a new row).̅
after a letter will provide a "combining overline" over the letter (used to indicate an inverse signal such as Q̅).
- Multiple sprites and text may be stacked in the same cell by separating them with a plus sign (
+
), lower layers before upper layers.
考量[编辑]
Overuse of the schematic template can create a high server load, resulting in long page generation times or even a time-out failure. This server load is proportional to the number of schematic cells on a page (for example, one 100-cell schematic and ten 10-cell schematics produce roughly the same server load). When the number of schematic cells on a page start to exceed a few hundred (or fewer, with other high-load templates), consider using {{LoadBox}}
or {{LoadPage}}
to offload some or all schematics into user-requested subpages.
示例
[编辑]
识别符列表[编辑]
A sprite identifier is a string of characters that specify which sprite to display.
Some conventions to remember:
- Directions are indicated by
n
(north),s
(south),e
(east),w
(west),u
(up), andd
(down). Directions are relative to the schematic, not the Minecraft world. $
indicates a side view sprite.!
indicates a powered/activated component.
基础识别符
[编辑]
红石识别符
[编辑]