Template:AdminOnlyMethod: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
Couldn't modify the Method template for AdminOnly-ness so I created this. It can also be set to protected+admin only :D
 
>Blocco
No edit summary
 
(6 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;">
<div style="float:left; max-width:600px; width: 50%; min-height:120px; overflow:auto">
{| 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;"
{| 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}}AdminOnlyMethod.png]] [[{{{name}}} (Method)|{{{name}}}]]( {{{arguments<includeonly>|</includeonly>}}} )
|style="padding: 1;font-size:120%; font-weight:bold;" colspan="2"|[[Image:{{if|{{{protected|}}}|Protected}}AdminMethod.png]] [[{{{name}}} (Method)|{{{name}}}]]( {{{arguments<includeonly>|</includeonly>}}} )
|-style="background: #FFFFFF;"
|-style="background: #FFFFFF;"
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Returns
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Returns
Line 40: Line 40:
|description = Can only be accessed by an admin
|description = Can only be accessed by an admin
|object      = nil}}
|object      = nil}}





Latest revision as of 23:17, 26 August 2011

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

Example Usage

{{AdminOnlyMethod
|name        = SaveBoolean
|arguments   = [[String]] ''key'', [[Boolean]] ''value''
|returns     = 
|description = Saves a boolean value.
|object      = Player
}}
{{AdminOnlyMethod
|name        = LoadBoolean
|arguments   = [[String]] ''key''
|returns     = [[Boolean]] ''value''
|description = Loads a boolean value.
|object      = Player
}}
AdminOnlyMethod( Boolean playingRoblox )
Returns String playerName
Description: Can only be accessed by an admin
In Object: nil










File:ProtectedAdminMethod.png ProtectedAdminOnlyMethod( Boolean protected )
Returns nil
Description: A protected admin-only method
In Object: nil