Template:Block/doc: Difference between revisions
-u ndefined- (talk | contribs) (Transferring documentation) |
-u ndefined- (talk | contribs) m (New "nocat" argument) |
||
| Line 12: | Line 12: | ||
|input1={{Port|n}} | |input1={{Port|n}} | ||
|output1={{Port|n}} | |output1={{Port|n}} | ||
|nocat=1 | |||
}} | }} | ||
{{Block | {{Block | ||
| Line 19: | Line 20: | ||
|collider=b | |collider=b | ||
|folder=Templates | |folder=Templates | ||
|nocat=1 | |||
}} | }} | ||
| Line 31: | Line 33: | ||
|input1={{Port|n}} | |input1={{Port|n}} | ||
|output1={{Port|n}} | |output1={{Port|n}} | ||
|nocat=1 | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 41: | Line 44: | ||
|collider=b | |collider=b | ||
|folder=Templates | |folder=Templates | ||
|nocat=1 | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 57: | Line 61: | ||
** '''s'''phere | ** '''s'''phere | ||
* '''folder''': The [[Editor#Inventory|folder]] the block is in. | * '''folder''': The [[Editor#Inventory|folder]] the block is in. | ||
** '''nocat''': Prevent the automatic addition of the folder category. | |||
* '''input#''': <code>#</code> for number. Supports up to five parameters. The input [[Template:Port|port]]s of the block, from left to right, top to bottom. | * '''input#''': <code>#</code> for number. Supports up to five parameters. The input [[Template:Port|port]]s of the block, from left to right, top to bottom. | ||
* '''output#''': <code>#</code> for number. Supports up to five parameters. The output ports of the block, from left to right, top to bottom. | * '''output#''': <code>#</code> for number. Supports up to five parameters. The output ports of the block, from left to right, top to bottom. | ||
<includeonly>[[Category:Infoboxes]]</includeonly> | <includeonly>[[Category:Infoboxes]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 18:20, 20 December 2025
Description
The Block template is an infobox for blocks, primarily script blocks.
Example
Absolute
| Type | Script block |
| Collider | None |
| Folder | Math |
| Ports | |
|---|---|
| Inputs | Number |
| Outputs | Number |
Box
| Type | Normal |
| Collider | Box |
| Folder | Templates |
The example is generated via the following:
{{Block
|title=Absolute
|image=Absolute.png
|type=s
|folder=math
|input1={{Port|n}}
|output1={{Port|n}}
|nocat=1
}}
{{Block
|title=Box
|image=Box.png
|type=n
|collider=b
|folder=Templates
|nocat=1
}}
Parameters
Keywords:
- title: Title of block. Defaults to page name if unspecified.
- image: Image of block. Must be provided.
- type: First letter of the type of block in lowercase. If unspecified, defaults to normal. There are two options.
- physics
- script block
- collider: First letter of the collider of block in lowercase. If unspecified, defaults to normal. There are two options.
- box
- sphere
- folder: The folder the block is in.
- nocat: Prevent the automatic addition of the folder category.
- input#:
#for number. Supports up to five parameters. The input ports of the block, from left to right, top to bottom. - output#:
#for number. Supports up to five parameters. The output ports of the block, from left to right, top to bottom.