Template:Port: Difference between revisions

From Fancade Wiki
(Created page with "<includeonly><span class="port-rectangle port-rectangle-{{ #switch:{{{1}}} |e=execution |n=number |v=vector |r=rotation |t=truth |o=object |c=constraint }}"></span> {{{2|{{ #switch:{{{1}}} |e=Execution |n=Number |v=Vector |r=Rotation |t=Truth |o=Object |c=Constraint }}}}}</includeonly><noinclude> * {{Port|n}} * {{Port|v|Position}} * {{Port|r}} * {{Port|t}} * {{Port|o}} * {{Port|c}} </noinclude>")
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 17: Line 17:
|o=Object
|o=Object
|c=Constraint
|c=Constraint
}}}}}</includeonly><noinclude>
}}}}}</includeonly><noinclude><!--
* {{Port|n}}
 
* {{Port|v|Position}}
-->The '''Port''' template displays the type and name of the port of a script block.
* {{Port|r}}
 
* {{Port|t}}
== Example ==
* {{Port|o}}
 
* {{Port|c}}
* <code><nowiki>{{Port|n}}</nowiki></code>: {{Port|n}}
* <code><nowiki>{{Port|v|Position}}</nowiki></code>: {{Port|v|Position}}
 
== 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.
 
[[Category:Convenience templates]]
</noinclude>
</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.