Minecraft Wiki

Minecraft Wikiは、Microsoftから公式ウィキとみなされなくなったため、ウィキのロゴを含むいくつかの変更が必要となりました。詳細はこちらのお知らせをご覧ください。

もっと見る

Minecraft Wiki
Lukes20129 (トーク | 投稿記録)
(見出しのみ翻訳)
 
 
2行目: 2行目:
 
<!-- ここに解説 -->
 
<!-- ここに解説 -->
 
{{Lua|Schematic}}
 
{{Lua|Schematic}}
This template displays a block sprite built from [[:File:SchematicSprite.png]].
+
This template displays a block sprite built from [[:ファイル:SchematicSprite.png]].
   
 
== 使用法 ==
 
== 使用法 ==
12行目: 12行目:
 
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., <code>size=16</code>). If omitted, size defaults to 32.
 
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., <code>size=16</code>). If omitted, size defaults to 32.
   
[[File:SchematicSprite.png|thumb|Sprite sheet for SchematicSprite]]
+
[[ファイル:SchematicSprite.png|thumb|SchematicSpriteのスプライトシート]]
 
A ''sprite'' parameter identifies the sprite to be displayed from the sprite sheet on the right.
 
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). [[Wikipedia:en:List_of_XML_and_HTML_character_entity_references|HTML character entity references]] may be needed for some characters, such as <code>&amp;#124;</code> for the pipe character: <code>&#124;</code>, or <code>&amp;#61;</code> for an equals sign.
+
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). [[Wikipedia:List_of_XML_and_HTML_character_entity_references|HTML character entity references]] may be needed for some characters, such as <code>&amp;#124;</code> for the pipe character: <code>&#124;</code>, or <code>&amp;#61;</code> 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.
 
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.
127行目: 127行目:
   
 
[[en:Template:SchematicSprite]]
 
[[en:Template:SchematicSprite]]
  +
[[nl:Sjabloon:SchematicSprite]]
 
[[zh:Template:SchematicSprite]]
 
[[zh:Template:SchematicSprite]]
 
</includeonly>
 
</includeonly>
132行目: 133行目:
 
<!-- ここに解説のカテゴリと言語間リンク -->
 
<!-- ここに解説のカテゴリと言語間リンク -->
 
[[en:Template:SchematicSprite/doc]]
 
[[en:Template:SchematicSprite/doc]]
  +
[[nl:Sjabloon:SchematicSprite/doc]]
 
[[zh:Template:SchematicSprite/doc]]
 
[[zh:Template:SchematicSprite/doc]]
 
</noinclude>
 
</noinclude>

2020年1月28日 (火) 01:32時点における最新版

これは、メインテンプレートページに参照されるべきである解説ページです。詳細についてはテンプレート:Documentationを参照してください
Lua logo.svg
このテンプレートは、モジュール:Schematicを使用しています。また、このスクリプトはLuaで書かれています。

This template displays a block sprite built from ファイル:SchematicSprite.png.

使用法

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.

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.

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 ダイアクリティカルマーク
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
Error testing (section not transcluded)
" {{SchematicSprite|"}} okay
& {{SchematicSprite|&}} okay
' {{SchematicSprite|'}} okay
< {{SchematicSprite|<}} okay
> {{SchematicSprite|>}} okay
= {{SchematicSprite|&#61;}} substitution required for equals sign (used to create a named parameter)
| {{SchematicSprite|&#124;}} substitution required for vertical line (used to delimit parameters)

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

識別子の一覧

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

基本の識別子

詳細は「Template:SchematicSprite/ids-basic」を参照
[編集]

レッドストーンの識別子

関連項目

Minecraft
Minecraft(レガシー)
Minecraft Dungeons
その他