Template:Method: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
No edit summary
>Mattchewy
Undo revision 40277 by ArceusInator (Talk)
Line 4: Line 4:
{{if|{{{object|}}}|[[{{{object|}}}]]}}{{if|{{{objects|}}}|{{{objects|}}}}}</div>[[Image:{{if|{{{protected|}}}|Protected}}Method Icon.png]][[{{{name}}} (Method)|{{{name}}}]] ({{{arguments|}}})
{{if|{{{object|}}}|[[{{{object|}}}]]}}{{if|{{{objects|}}}|{{{objects|}}}}}</div>[[Image:{{if|{{{protected|}}}|Protected}}Method Icon.png]][[{{{name}}} (Method)|{{{name}}}]] ({{{arguments|}}})
</div>
</div>
<div class="Pcontainer" style="{{border-top: 1px solid {{color|red|dark}}}}; padding: 4px; background-color:{{color|blue|light}}">'''Returns:'''        {{{returns<includeonly>|[[nil]]</includeonly>}}}</div>
<div class="Pcontainer" style="{{border-top: 1px solid {{color|red|dark}}}}; padding: 4px; background-color:{{color|blue|light}}">'''Returns:'''        {{{returns}}}</div>
<div class="Dcontainer" style="{{border-top: 1px solid {{color|red|dark}}}}; padding: 4px; background-color:{{color|blue|light}}">'''Description:'''  {{{description}}}</div></div></includeonly><noinclude>
<div class="Dcontainer" style="{{border-top: 1px solid {{color|red|dark}}}}; padding: 4px; background-color:{{color|blue|light}}">'''Description:'''  {{{description}}}</div></div></includeonly><noinclude>
== Example Usage ==
== Example Usage ==

Revision as of 22:31, 6 February 2011

Example Usage

Single Object

{{Method
|name        = FindFirstChild
|arguments   = [[String]] Name
|returns     = [[Instance]] ''object''
|description = Returns the first child found with a name of ''Name''.
|object      = Instance
}}

Multiple Objects

{{Method
|name        = BreakJoints
|description = Breaks any Surface connections with any adjacent parts, including [[Weld]]s and other [[JointInstance]]s.
|objects     = [[Model]], [[Part]], [[Weld]]
}}