Template:Port: Difference between revisions

m
mNo edit summary
m (Migrate to Template:Documentation)
 
Line 17: Line 17:
|o=Object
|o=Object
|c=Constraint
|c=Constraint
}}}}}</includeonly><noinclude><!--
}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
-->The '''Port''' template displays the type and name of the port of a script block.
 
== Example ==
 
* <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>