Template:Method: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mattchewy m Protected "Template:Method" [edit=sysop:move=sysop] |
>ArceusInator I hope I didn't just break that |
||
Line 1: | Line 1: | ||
<div style=" | <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> | ||
<div style="font-size: 75%;text-align: right;color: {{Color|blue|dark}};">'''Member of:''' | |||
{{if|{{{object|}}}|[[{{{object|}}}]]}}{{if|{{{objects|}}}|{{{objects|}}}}}</div>[[Image:{{if|{{{protected|}}}|Protected}}Method Icon.png]][[{{{name}}} (Method)|{{{name}}}]] ({{{arguments|}}}) | |||
</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> | |||
| | |||
== Example Usage == | == Example Usage == | ||
Revision as of 21:17, 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]] }}