Template:Port: Difference between revisions
Nikitaivanov (talk | contribs) No edit summary |
-u ndefined- (talk | contribs) (Document template) |
||
Line 18: | Line 18: | ||
|c=Constraint | |c=Constraint | ||
}}}}}</includeonly><noinclude> | }}}}}</includeonly><noinclude> | ||
* {{Port| | |||
The '''Port''' template displays the type and name of the port of a script block. | |||
* {{Port|v|Position}} | |||
== Example == | |||
* | |||
* | * <code><nowiki>{{Port|n}}</nowiki></code>: {{Port|n}} | ||
* | * <code><nowiki>{{Port|v|Position}}</nowiki></code>: {{Port|v|Position}} | ||
</noinclude> | |||
== Parameters == | |||
Positional: | |||
* '''Type''': The first letter (in lowercase) corresponding to the type of wire. There are seven types: | |||
** '''e'''xecution | |||
** '''n'''umber | |||
** '''v'''ector | |||
** '''r'''otation | |||
** '''t'''ruth | |||
** '''o'''bject | |||
** '''c'''onstraint | |||
* '''Name''': Optional. The name of the port. If unspecified, defaults to the type of the wire, used in custom [[Script Block|script block]]s.</noinclude> |
Revision as of 03:05, 11 June 2025
The Port template displays the type and name of the port of a script block.
Example
{{Port|n}}
: Number{{Port|v|Position}}
: Position
Parameters
Positional:
- Type: The first letter (in lowercase) corresponding to the type of wire. There are seven types:
- execution
- number
- vector
- rotation
- truth
- object
- constraint
- Name: Optional. The name of the port. If unspecified, defaults to the type of the wire, used in custom script blocks.