Szablon:SchematicSprite/opis: Różnice pomiędzy wersjami
| [wersja nieprzejrzana] | [wersja przejrzana] |
d KsawiBOT przeniósł stronę Szablon:SchematicSprite/doc na Szablon:SchematicSprite/opis, bez pozostawienia przekierowania pod starym tytułem: Przeniesienie dokumentacji z "/doc" do "/opis" |
Nie podano opisu zmian |
||
| (Nie pokazano 1 wersji utworzonej przez jednego użytkownika) | |||
| Linia 1: | Linia 1: | ||
{{ | {{Dokumentacja/Nagłówek}} | ||
{{Do przetłumaczenia}} | |||
This template displays a block sprite built from [[:File:SchematicSprite.png]]. | This template displays a block sprite built from [[:File:SchematicSprite.png]]. | ||
| Linia 120: | Linia 121: | ||
{{Sprite see also}} | {{Sprite see also}} | ||
<includeonly> | |||
<!-- Template categories/interwiki here --> | |||
[[Kategoria:Dokumentacja do przetłumaczenia]] | |||
[[Kategoria:Szablony obrazów]] | |||
[[de:Vorlage:BauplanSprite]] | |||
[[en:Template:SchematicSprite]] | |||
[[es:Plantilla:SpriteEsquemática]] | |||
[[fr:Modèle:SchémaSprite]] | |||
[[it:Template:SchematicSprite]] | |||
[[ja:テンプレート:SchematicSprite]] | |||
[[ko:틀:SchematicSprite]] | |||
[[lzh:模板:SchematicSprite]] | |||
[[nl:Sjabloon:SchematicSprite]] | |||
[[pt:Predefinição:SchematicSprite]] | |||
[[th:แม่แบบ:SchematicSprite]] | |||
[[uk:Шаблон:Спрайт/Схема]] | |||
[[zh:Template:SchematicSprite]] | |||
</includeonly> | |||
<noinclude> | |||
<!-- Documentation categories/interwiki here --> | |||
[[de:Vorlage:BauplanSprite/Dokumentation]] | |||
[[en:Template:SchematicSprite/doc]] | |||
[[es:Plantilla:SpriteEsquemática/doc]] | |||
[[fr:Modèle:SchémaSprite/doc]] | |||
[[it:Template:SchematicSprite/doc]] | |||
[[ja:テンプレート:SchematicSprite/doc]] | |||
[[ko:틀:SchematicSprite/doc]] | |||
[[lzh:模板:SchematicSprite/doc]] | |||
[[nl:Sjabloon:SchematicSprite/doc]] | |||
[[pt:Predefinição:SchematicSprite/doc]] | |||
[[th:แม่แบบ:SchematicSprite/doc]] | |||
[[uk:Шаблон:Спрайт/Схема/док]] | |||
[[zh:Template:SchematicSprite/doc]] | |||
</noinclude> | |||
Aktualna wersja na dzień 22:31, 31 maj 2026
| Artykuł „SchematicSprite/opis” jest w trakcie tłumaczenia. Możesz pomóc tłumacząc go.
|
This template displays a block sprite built from File:SchematicSprite.png.
Usage[edytuj kod]
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.

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 | for the pipe character: |, or = 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[edytuj kod]
| 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|→}}
|
displaying an HTML character entity reference |
| Q̅ | {{SchematicSprite|Q̅}}
|
using an HTML character entity reference to combine a character with a diacritical mark |
| 15 | {{SchematicSprite|15}}
|
two characters usually fit… |
{{SchematicSprite|WW}}
|
…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 | |
{{SchematicSprite|size=24|SB|A}}
|
text on block of gold | |
{{SchematicSprite|MB|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|=}}
|
substitution required for equals sign (used to create a named parameter) |
| | | {{SchematicSprite||}}
|
substitution required for vertical line (used to delimit parameters) |
SchematicSprites can also appear in the flow of text, like this: ![]()
.
List of identifiers[edytuj kod]
An identifier is a string of characters that specify which sprite to display.
Szablon:LoadPage Szablon:LoadPage
See also[edytuj kod]
{{BiomeSprite}}{{BlockSprite}}{{EffectSprite}}{{EntitySprite}}{{EnvSprite}}{{ItemSprite}}{{Nbt/sprite}}{{InvSprite}}(wykorzystuje inny system niż pozostałe szablony)