Template:Method: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>NXTBoy
Matches Template:Event template coloring style now
Line 1: Line 1:
<div style="float:left; max-width:600px; width: 50%; {{if|{{{widthoverride|}}}|width:100%;}} min-height:120px; overflow:auto">
<div style="float:left; max-width:600px; width: 50%; min-height:120px; overflow:auto">
{| cellspacing="0" cellpadding="4" style="margin: 4px; padding: 4px; display: block; {{border-radius|6px}}; background: {{color|magenta}}; font-size: 90%; text-align: left; border: 4px solid {{color|magenta|dark}};"
{| cellspacing="0" cellpadding="4" style="margin: 2px; display: block; {{border-radius|6px}}; background: {{color|magenta}}; font-size: 90%; text-align: left; border: 4px solid {{color|magenta|dark}};"
|style="padding: 1;font-size:120%; font-weight:bold;" colspan="2"|[[Image:{{if|{{{protected|}}}|Protected_}}Method Icon.png]] [[{{{name}}} (Method)|{{{name}}}]]( {{{arguments<includeonly>|</includeonly>}}} )
|style="padding: 1;font-size:120%; font-weight:bold;" colspan="2"|[[Image:{{if|{{{protected|}}}|Protected_}}Method Icon.png]] [[{{{name}}} (Method)|{{{name}}}]]( {{{arguments<includeonly>|</includeonly>}}} )
|-style="background: #FFFFFF;"
|-style="background: {{color|magenta|light}};"
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Returns
|style="width: 10%; border-top: solid 1px {{color|magenta|dark}}; border-right: solid 1px {{color|magenta|dark}}; font-weight:bold;"|Returns
|style="border-top: solid 1px black;"|{{{returns<includeonly>|{{nil}}</includeonly>}}}
|style="border-top: solid 1px {{color|magenta|dark}};"|{{{returns<includeonly>|{{nil}}</includeonly>}}}
|-
|-
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Description:  
|style="width: 10%; border-top: solid 1px {{color|magenta|dark}}; border-right: solid 1px {{color|magenta|dark}}; font-weight:bold;"|Description:  
|style="border-top: solid 1px black;"|{{{description}}}
|style="border-top: solid 1px {{color|magenta|dark}};"|{{{description}}}
|-style="background: #FFFFFF;"
|-style="background: {{color|magenta|light}};"
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|In Object{{if|{{{object2|}}}|s}}:
|style="width: 10%; border-top: solid 1px {{color|magenta|dark}}; border-right: solid 1px {{color|magenta|dark}}; font-weight:bold;"|In Object{{if|{{{object2|}}}|s}}:
|style="border-top: solid 1px black;"|{{if|{{{object|}}}|{{type|instance={{{object|}}}}}|{{if|{{{objects|}}}|{{{objects|}}}}}}}
|style="border-top: solid 1px {{color|magenta|dark}};"|{{if|{{{object|}}}|{{type|instance={{{object|}}}}}|{{if|{{{objects|}}}|{{{objects|}}}}}}}
|}</div><noinclude>{{clear floats}}
|}</div><noinclude>{{clear floats}}
== Example Usage ==
== Example Usage ==

Revision as of 17:19, 18 February 2012

[[{{{name}}} (Method)|{{{name}}}]]( {{{arguments}}} )
Returns {{{returns}}}
Description: {{{description}}}
In Object:

Example Usage

Single Object

FindFirstChild( string name, bool recursive = false )
Returns Instance
Description: Returns the first child found with a name of name. Returns nil if no such child exists. If the optional recursive argument is true, will recursively descend the hierarchy while searching rather than only searching the immediate object.
In Object: Instance

Multiple Objects

BreakJoints( )
Returns nil
Description: Breaks any surface connection with any adjacent Part, including Welds and other JointInstances.
In Object: BasePart, Model