User:ArceusInator/Method template: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator No edit summary |
>JulienDethurens Commented the category. |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="float:left; padding:2px; width:600px; height:150px; overflow:auto; margin:2px;"> | |||
[[Image:{{if|{{{protected|}}}|Protected}}Method Icon.png]] | {| 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;" | ||
|style="padding: 1;font-size:120%; font-weight:bold;" colspan="2"|[[Image:{{if|{{{protected|}}}|Protected}}{{if|{{{admin|}}}|Admin}}{{if|{{{local|}}}|Local}}Method Icon.png]][[{{{name}}} (Method)|{{{name}}}]]({{{arguments|{{{args|}}}}}}) | |||
[[{{{name}}} (Method)|{{{name}}} ({{{arguments|}}}) | |-style="background: #FFFFFF;" | ||
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Returns | |||
|style="border-top: solid 1px black;"|{{P|{{{returns}}}|{{{ret<includeonly>|[[nil]]</includeonly>}}}}} | |||
|-style="background: #ffdddd;" | |||
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Description: | |||
{{if|{{{object|}}}|[[{{{object|}}}]]}}{{if|{{{objects|}}}|{{{objects|}}}}}</div> | |style="border-top: solid 1px black;"|{{P|{{{description}}}|{{{desc}}}}} | ||
</ | |-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 == | |||
=== Single Object === | |||
<pre> | |||
{{Method | |||
|name = FindFirstChild | |||
|arguments = [[String]] Name | |||
|returns = [[Instance]] ''object'' | |||
|description = Returns the first child found with a name of ''Name''. | |||
|object = Instance | |||
}} | |||
</pre> | |||
=== Multiple Objects === | |||
<pre> | |||
{{Method | |||
|name = BreakJoints | |||
|description = Breaks any Surface connections with any adjacent parts, including [[Weld]]s and other [[JointInstance]]s. | |||
|objects = [[Model]], [[Part]], [[Weld]] | |||
}} | |||
</pre> | |||
<!--[[Category:Object Documentation Templates]]--> | |||
{{User:ArceusInator/Method_template | |||
|name=Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
{{User:ArceusInator/Method_template | |||
|protected=Yes | |||
|name=Protected Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
{{User:ArceusInator/Method_template | |||
|local=Yes | |||
|name=Local Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
{{User:ArceusInator/Method_template | |||
|admin=Yes | |||
|name=Admin Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
{{User:ArceusInator/Method_template | |||
|protected=Yes | |||
|admin=Yes | |||
|name=Protected Admin Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
{{User:ArceusInator/Method_template | |||
|protected=Yes | |||
|local=Yes | |||
|name=Protected Local Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
{{User:ArceusInator/Method_template | |||
|local=Yes | |||
|admin=Yes | |||
|name=Local Admin Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
{{User:ArceusInator/Method_template | |||
|local=Yes | |||
|admin=Yes | |||
|protected=Yes | |||
|name=Protected Local Admin Method | |||
|arguments=''arguments'' | |||
|returns=''returns'' | |||
|description=''description'' | |||
|object=asdfghjkl}} | |||
</noinclude> |
Latest revision as of 05:23, 9 April 2012
[[{{{name}}} (Method)|{{{name}}}]]() | |
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]] }}
Protected Method(arguments) | |
Returns | returns |
Description: | description |
In Object: | asdfghjkl |
Local Method(arguments) | |
Returns | returns |
Description: | description |
In Object: | asdfghjkl |
Admin Method(arguments) | |
Returns | returns |
Description: | description |
In Object: | asdfghjkl |
File:ProtectedAdminMethod Icon.pngProtected Admin Method(arguments) | |
Returns | returns |
Description: | description |
In Object: | asdfghjkl |
Protected Local Method(arguments) | |
Returns | returns |
Description: | description |
In Object: | asdfghjkl |
Local Admin Method(arguments) | |
Returns | returns |
Description: | description |
In Object: | asdfghjkl |
Protected Local Admin Method(arguments) | |
Returns | returns |
Description: | description |
In Object: | asdfghjkl |