Szablon:Schematic/opis: Różnice pomiędzy wersjami
| [wersja nieprzejrzana] | [wersja nieprzejrzana] |
d Przetłumaczenie niektórych fragmentów. |
|||
| Linia 5: | Linia 5: | ||
|output|+|rr-w1|rt-n|rr-e2|SB | |output|+|rr-w1|rt-n|rr-e2|SB | ||
}} | }} | ||
This template displays a grid of block sprites to symbolically represent a ''Minecraft'' structure (primarily redstone circuits and mechanisms). | Ten szablon wyświetla siatkę bloków symbolicznie reprezentujących struktury w ''Minecraft'' (szczególnie zegary z [[czerwony proszek|czerwonego proszku]] i mechanizmy). | ||
<!-- This template displays a grid of block sprites to symbolically represent a ''Minecraft'' structure (primarily redstone circuits and mechanisms). --> | |||
== | == Użycie == | ||
Schematic uses unnamed parameters to define the sprites used in the schematic, and named parameters to modify the schematic's default appearance: | Schematic uses unnamed parameters to define the sprites used in the schematic, and named parameters to modify the schematic's default appearance: | ||
<nowiki>{{Schematic | |||
|caption=<caption> | |caption=<caption> | ||
|captionstyle=<captionstyle> | |captionstyle=<captionstyle> | ||
| Linia 72: | Linia 73: | ||
}}</nowiki> | }}</nowiki> | ||
<nowiki>'''XOR | <nowiki>'''Bramka logiczna XOR'''</nowiki> | ||
| | | | ||
{{Schematic | {{Schematic | ||
| Linia 81: | Linia 82: | ||
}} | }} | ||
'''XOR | '''Bramka logiczna XOR''' | ||
|- | |- | ||
| | | | ||
| Linia 176: | Linia 177: | ||
{{SchematicSprite|AB}} AB | {{SchematicSprite|AB}} AB | ||
|- | |- | ||
| [[ | | [[Szkło]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|glass}} glass | {{SchematicSprite|glass}} glass | ||
|- | |- | ||
| [[ | | [[Jasnogłaz]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|gs}} gs | {{SchematicSprite|gs}} gs | ||
|- | |- | ||
| [[ | | [[Blok trawy]], [[Ziemia]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|GB}} GB | {{SchematicSprite|GB}} GB | ||
| Linia 192: | Linia 193: | ||
{{SchematicSprite|fa-$}} fa-$ | {{SchematicSprite|fa-$}} fa-$ | ||
|- | |- | ||
| [[ | | [[Lód]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|ice}} ice | {{SchematicSprite|ice}} ice | ||
|- | |- | ||
| [[ | | [[Obsydian]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|obsidian}} obsidian | {{SchematicSprite|obsidian}} obsidian | ||
|- | |- | ||
| [[ | | [[Piasek]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|sand}} sand | {{SchematicSprite|sand}} sand | ||
|- | |- | ||
| [[ | | [[Piasek dusz]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|nS}} nS | {{SchematicSprite|nS}} nS | ||
|- | |- | ||
| [[ | | [[Kamień]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|St}} St | {{SchematicSprite|St}} St | ||
| Linia 220: | Linia 221: | ||
{{SchematicSprite|Jw-$}} Jw-$ | {{SchematicSprite|Jw-$}} Jw-$ | ||
|- | |- | ||
| [[ | | [[Wełna]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|WW}} WW | {{SchematicSprite|WW}} WW | ||
| Linia 245: | Linia 246: | ||
|- | |- | ||
| [[ | | [[Kowadło]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|anvil}} anvil | {{SchematicSprite|anvil}} anvil | ||
| Linia 265: | Linia 266: | ||
{{SchematicSprite|cactus-$}} cactus-$ | {{SchematicSprite|cactus-$}} cactus-$ | ||
|- | |- | ||
| [[ | | [[Skrzynia]]<br />[[Trapped Chest]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|ch}} ch | {{SchematicSprite|ch}} ch | ||
| Linia 276: | Linia 277: | ||
{{SchematicSprite|ch-$w}} ch-$w | {{SchematicSprite|ch-$w}} ch-$w | ||
|- | |- | ||
| [[ | | [[Pajęczyna]] | ||
| style="font-family: monospace" | | | style="font-family: monospace" | | ||
{{SchematicSprite|cobweb}} cobweb | {{SchematicSprite|cobweb}} cobweb | ||
Wersja z 11:11, 3 maj 2016
[Pomoc: Schematy]
Ten szablon wyświetla siatkę bloków symbolicznie reprezentujących struktury w Minecraft (szczególnie zegary z czerwonego proszku i mechanizmy).
Użycie
Schematic uses unnamed parameters to define the sprites used in the schematic, and named parameters to modify the schematic's default appearance:
{{Schematic |caption=<caption> |captionstyle=<captionstyle> |clear=<clear> |float=<float> |size=<size> |style=<style> |tablestyle=<tablestyle> |<param1>|<param2>|… }}
- caption
- The optional 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 redstone style guide recommends adding
{{Schematic help}}at the end of the caption of the first schematic in an article (and to others if helpful), which adds a standardized link to the schematic help page.
- captionstyle
- The optional captionstyle parameter may be added to change the appearance of the caption area and contents. Its value should be a css declaration or declaration group with no surrounding braces or quotes (e.g.,
captionstyle=color: red; text-align: center;). This parameter has no effect if caption and float are not specified.
- 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 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
|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̅).
Considerations
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.
| Code | Produces: | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Schematic
|input|+|A|rd-sw|air|air|-
|rd-nse|rs-e|rd-ew|output|+|O|-
|rd-nse|rs-e|SB||-
|input|+|B|rd-nw|air|air
}}
'''Bramka logiczna XOR'''
|
Bramka logiczna XOR | ||||||||||||||||
{{Schematic
|caption='''Falling-Edge Detector'''
|input|+|A|SB|+|rt-!|pi-e!|pe-e|BR|-
||||output|+|O|
}}
Place the captioned schematic right before the paragraph of text that will flow around it.
|
Falling-Edge Detector
Place the captioned schematic right before the paragraph of text that will flow around it. | ||||||||||||||||
{{Schematic
|float=left|caption='''1-Wide RS NOR Latch'''<br />(support layer not shown)
|input|+|S|rd-$|rd-$|||-
||SB|SB|rt-$w!|output|+|Q̅|-
|output|+|Q|rt-$e|SB|rd-$!|input|+|R
}}
|
1-Wide RS NOR Latch
(support layer not shown) | ||||||||||||||||
{{Schematic|size=16|caption='''Hopper Clock'''
Long captions will not increase the width of the surrounding box
unless the schematic is fewer than 182px wide
(the same width as the standard image thumb).
size=16 is really too small. Only use it for ''huge'' schematics!
|rd-!|pi-e|BR|pe-w|pi-w!|rd-!|||-
|SB|rc-w!|ho-e|ho-w|rc-e!|SB|rt-w|output|+|C
}}
|
Hopper Clock Long captions will not increase the width of the surrounding box unless the schematic is fewer than 182px wide (the same width as the standard image thumb). size=16 is really too small. Only use it for huge schematics! |
List of identifiers
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.
Basic identifiers
Utility Sprites | |
|---|---|
| Ellipses |
|
| Miscellaneous |
|
Building Blocks | |
| Any block |
|
| Szkło |
|
| Jasnogłaz |
|
| Blok trawy, Ziemia |
|
| Lód |
|
| Obsydian |
|
| Piasek |
|
| Piasek dusz |
|
| Kamień |
|
| Wood |
|
| Wełna |
|
Decoration Blocks | |
| Kowadło |
|
| Bookshelf |
|
| Brewing Stand |
|
| Cactus |
|
| Skrzynia Trapped Chest |
|
| Pajęczyna |
|
| Crafting Table |
|
| Enchantment Table |
|
| Furnace |
|
| Iron Bars |
|
| Jukebox |
|
| Ladder |
|
| Lava |
|
| Leaves |
|
| Jack 'o' Lantern |
|
| Monster Spawner |
|
| Sapling |
|
| Sign |
|
| Vines |
|
| Water |
|
Transportation | |
| Boat |
|
| Minecart |
|
| Minecart with Chest |
|
| Minecart with Furnace |
|
| Minecart with Hopper |
|
| Minecart with TNT |
|
| Activator Rail |
|
| Detector Rail |
|
| Powered Rail |
|
| Rail |
|
Redstone identifiers
Support components | |
|---|---|
| Redstone Support |
|
Power components | |
| Block of Redstone |
|
| Button |
|
| Daylight Sensor |
|
| Lever |
|
| Pressure Plates Weighted Pressure Plates |
|
| Redstone Torch |
|
| Tripwire Hook Tripwire |
|
Transmission components | |
| Redstone Comparator |
Note: rc for comparison mode, rs for subtraction mode. |
| Redstone Dust |
|
| Redstone Repeater |
Note: rr for unlocked repeaters, lr for locked repeaters. |
Mechanism components | |
| Command Block |
|
| Dispenser |
|
| Doors |
|
| Dropper |
|
| Fence Gate |
|
| Hopper |
|
| Note Block |
|
| Piston |
|
| Redstone Lamp |
|
| Sticky Piston |
|
| TNT |
|
| Trapdoor |
|
See Also
- Help:Schematic
- Guide to reading wiki schematics
- Redstone style guide
- Guide to writing wiki articles about redstone structures, including tips for authoring schematics