User:ArceusInator/Template:Function: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator No edit summary |
>ArceusInator No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Type: | |style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Type: | ||
|style="border-top: solid 1px black;"| | |style="border-top: solid 1px black;"| | ||
{{Ifeq|{{{type}}}|core|[[Function_Dump/Core_Functions|Core Function]]| | {{Ifeq|{{{type}}}|core|[[Function_Dump/Core_Functions|Core Function]]| | ||
{{Ifeq|{{{type}}}|coroutine|[[Function_Dump/Coroutine_Manipulation|Coroutine Function]]| | {{Ifeq|{{{type}}}|coroutine|[[Function_Dump/Coroutine_Manipulation|Coroutine Function]]| | ||
Line 23: | Line 22: | ||
}} | }} | ||
}} | }} | ||
| | |}</div><noinclude>{{clear floats}} | ||
</ | |||
==Example Usage== | |||
The following properties are valid:<pre> | |||
property : Value = Default | |||
name : String | |||
description : String | |||
arguments : String | |||
returns : String = nil | |||
protected : Boolean = false | |||
type : Type = roblox | |||
Here's a list of inputs the "type" property can accept: | |||
core | |||
coroutine | |||
math | |||
string | |||
table | |||
roblox | |||
Anything else will be treated as if it were roblox.</pre> | |||
Here's what LoadLibrary may be written as: | |||
<pre> | |||
{{User:ArceusInator/Template:Function | |||
|name = LoadLibrary | |||
|arguments = [[String]] ''libraryName'' | |||
|returns = [[Userdata]] | |||
|description = Returns a library, 'libraryName' if it exists. Else, it returns nil and an error message for use with the assert function.}} | |||
</pre> | |||
this would result in: | |||
{{User:ArceusInator/Template:Function | |||
|name = LoadLibrary | |||
|arguments = [[String]] ''libraryName'' | |||
|returns = [[Userdata]] | |||
|description = Returns a library, 'libraryName' if it exists. Else, it returns nil and an error message for use with the assert function.}} | |||
</noinclude> |
Latest revision as of 03:58, 23 March 2011
[[{{{name}}} (Method)|{{{name}}}]]( {{{arguments}}} ) | |
Returns | {{{returns}}} |
Description: | {{{description}}} |
Type: |
Example Usage
The following properties are valid:
property : Value = Default name : String description : String arguments : String returns : String = nil protected : Boolean = false type : Type = roblox Here's a list of inputs the "type" property can accept: core coroutine math string table roblox Anything else will be treated as if it were roblox.
Here's what LoadLibrary may be written as:
{{User:ArceusInator/Template:Function |name = LoadLibrary |arguments = [[String]] ''libraryName'' |returns = [[Userdata]] |description = Returns a library, 'libraryName' if it exists. Else, it returns nil and an error message for use with the assert function.}}
this would result in:
LoadLibrary( String libraryName ) | |
Returns | Userdata |
Description: | Returns a library, 'libraryName' if it exists. Else, it returns nil and an error message for use with the assert function. |
Type: |