Template:Port: Difference between revisions

From Fancade Wiki
(Document template)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
|o=Object
|o=Object
|c=Constraint
|c=Constraint
}}}}}</includeonly><noinclude>
}}}}}</includeonly><noinclude><!--


The '''Port''' template displays the type and name of the port of a script block.
-->The '''Port''' template displays the type and name of the port of a script block.


== Example ==
== Example ==
Line 38: Line 38:
** '''o'''bject
** '''o'''bject
** '''c'''onstraint
** '''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>
* '''Name''': Optional. The name of the port. If unspecified, defaults to the type of the wire, used in custom [[Script Block|script block]]s.
 
[[Category:Convenience templates]]
</noinclude>

Latest revision as of 13:01, 16 July 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.