Template:Function: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
This needed to change
>Ozzypig
No edit summary
 
(46 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<table style="border: dashed 2px red; width: 100%; font-size: 90%; text-align: left; align: center; padding: 4px;" cellspacing="0" cellpadding="4">
<onlyinclude><div style="float:left; max-width:600px; width: 50%; {{if|{{{widthoverride|}}}|width:100%;}} min-height:120px; overflow:auto">
<tr><th style="font-size: 1.5em; padding: 0;" colspan="2">Function</th></tr>
{| cellspacing="0" cellpadding="4" style="margin: 4px; padding: 4px; display: block; {{border-radius|6px}}; background: #ffdddd; font-size: 90%; text-align: left; border: 4px solid #AA0000;"
<tr style="background: #FFEFEF;"><th style="width: 10%; border-top: solid 1px black; border-right: solid 1px black;">Syntax</th><td style="border-top: solid 1px black;">{{{name}}}( {{{arguments}}} )</td></tr>
|style="padding: 1;font-size:120%; font-weight:bold;" colspan="2"|{{if|{{{nolink|}}}|{{{name}}}|[[{{{name}}} (Function)|{{{name}}}]]}}( {{{arguments<includeonly>|</includeonly>}}} )
<tr style="background: #FFFFFF;"><th style="width: 10%; border-top: solid 1px black; border-right: solid 1px black;">Returns</th><td style="border-top: solid 1px black;">{{{returns}}}</td></tr>
|-style="background: #FFFFFF;"
<tr style="background: #FFEFEF;"><th style="width: 10%; border-top: solid 1px black; border-right: solid 1px black;">Description: </th><td style="border-top: solid 1px black;">{{{description}}}</td></tr>
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Returns
<tr style="background: #FFFFFF;"><th style="width: 10%; border-top: solid 1px black; border-right: solid 1px black;">In Object:</th><td style="border-top: solid 1px black;">{{{object}}}</td></tr>
|style="border-top: solid 1px black;"|{{{returns<includeonly>|[[nil]]</includeonly>}}}
</table><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}}}
|}</div></onlyinclude>


{{clear floats}}


== Example Usage ==
This template should not be used for methods. It should only be used with non-method functions. Whether these functions are in a library or directly in the environment doesn't matter.


<pre>
[[Category:Templates]]
{{Function|
name                  = FindFirstChild
|arguments            = [[String]] Name
|returns              = [[Instance]] ''object''
|description          = Returns the first child found with a name of ''Name''.
|object              = Global
|}}
</pre></noinclude>
<includeonly>[[Category:Functions]] __NOTOC__ </includeonly>

Latest revision as of 14:05, 23 March 2012

[[{{{name}}} (Function)|{{{name}}}]]( {{{arguments}}} )
Returns {{{returns}}}
Description: {{{description}}}


This template should not be used for methods. It should only be used with non-method functions. Whether these functions are in a library or directly in the environment doesn't matter.