Template:Method: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mattchewy
Undo revision 40277 by ArceusInator (Talk)
>Mattchewy
No edit summary
Line 1: Line 1:
<includeonly><div class="object-data" style="background-color: {{color|red|light}}; border: 1px solid {{color|red|dark}}; {{border-radius|5.5px}}; overflow:hidden; margin: 4px;{{{2|}}}"><div class="object-data-header" style="{{border-top-radius|4.5px}}; padding: 4px; background-color: {{color|red|medium}}"><div class="img" style="float: left; margin-right: 4px;">
<div style="float:left; padding:2px; width:600px; height:150px; overflow:auto; margin:2px;">
</div>
{| cellspacing="0" cellpadding="4" style="-webkit-border-radius: 6px; -moz-border-radius: 6px; background: #ffdddd; margin:0; width: 100%; font-size: 90%; text-align: left; align: center; padding: 4px; border: solid 4px #B57EDC;"
<div style="font-size: 75%;text-align: right;color: {{Color|blue|dark}};">'''Member of:'''
|style="padding: 1;font-size:120%; font-weight:bold;" colspan="2"|[[Image:{{if|{{{protected|}}}|Protected_}}Method Icon.png]] [[{{{name}}} (Method)|{{{name}}}]]( {{{arguments<includeonly>|</includeonly>}}} )
{{if|{{{object|}}}|[[{{{object|}}}]]}}{{if|{{{objects|}}}|{{{objects|}}}}}</div>[[Image:{{if|{{{protected|}}}|Protected}}Method Icon.png]][[{{{name}}} (Method)|{{{name}}}]] ({{{arguments|}}})
|-style="background: #FFFFFF;"
</div>
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Returns
<div class="Pcontainer" style="{{border-top: 1px solid {{color|red|dark}}}}; padding: 4px; background-color:{{color|blue|light}}">'''Returns:'''        {{{returns}}}</div>
|style="border-top: solid 1px black;"|{{{returns<includeonly>|[[nil]]</includeonly>}}}
<div class="Dcontainer" style="{{border-top: 1px solid {{color|red|dark}}}}; padding: 4px; background-color:{{color|blue|light}}">'''Description:'''  {{{description}}}</div></div></includeonly><noinclude>
|-style="background: #ffdddd;"
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Description:
|style="border-top: solid 1px black;"|{{{description}}}
|-style="background: #FFFFFF;"
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|In Object{{if|{{{object2|}}}|s}}:
|style="border-top: solid 1px black;"|{{if|{{{object|}}}|[[{{{object|}}}]]}}{{if|{{{objects|}}}|{{{objects|}}}}}
|}</div><noinclude>{{clear floats}}
== Example Usage ==
== Example Usage ==



Revision as of 22:36, 6 February 2011

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

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]]
}}