Difference between revisions of "Template:LSL Function/permission"

From Second Life Wiki
Jump to navigation Jump to search
(template reduction)
Line 1: Line 1:
{{#if:
{{#if:
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the {{LSLG|{{{1}}}}} permission{{#ifeq:{{{grant|anyone}}}|anyone||, granted by {{{grant|anyone}}},}} to run.}}}}
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|}}}| Requires the [[{{{1}}}]] permission{{#ifeq:{{{grant|anyone}}}|anyone||, granted by {{{grant|anyone}}},}} to run.}}}}
{{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|}}}|
{{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|}}}|
* If the script lacks the permission {{LSLG|{{{1}}}}}, the script will shout an error on {{LSLG|DEBUG_CHANNEL}} and the operation fails (but the script continues to run).{{#ifeq:{{{grant|anyone}}}|anyone||
* If the script lacks the permission [[{{{1}}}]], the script will shout an error on {{LSL Const|DEBUG_CHANNEL|integer|2147483647|hex=0x7FFFFFFF}} and the operation fails (but the script continues to run).{{#ifeq:{{{grant|anyone}}}|anyone||
* If {{LSLG|{{{1}}}}} is granted by anyone other then {{{grant|anyone}}} then when the function is called an error will be shouted on {{LSLG|DEBUG_CHANNEL}}.}}}}}}
* If [[{{{1}}}]] is granted by anyone other then {{{grant|anyone}}} then when the function is called an error will be shouted on {{LSL Const|DEBUG_CHANNEL|integer|2147483647|hex=0x7FFFFFFF}}.}}}}}}
{{#vardefine:also_events|{{#var:also_events}}
{{#vardefine:also_events|{{#var:also_events}}
{{LSL DefineRow||[[run_time_permissions]]|Permission receiving event}}}}
{{LSL DefineRow||[[run_time_permissions]]|Permission receiving event}}}}
Line 11: Line 11:
{{LSL DefineRow||[[llRequestPermissions]]|Request permissions}}}}
{{LSL DefineRow||[[llRequestPermissions]]|Request permissions}}}}
{{#vardefine:also_articles|{{#var:also_articles}}
{{#vardefine:also_articles|{{#var:also_articles}}
{{LSL DefineRow||{{LSLGC|Permissions/Script|Script permissions}}|}}}}
{{LSL DefineRow||[[:Category:LSL Permissions/Script|Script permissions]]|}}}}
}}<includeonly>{{#ifeq:{{{mode|{{#var:mode}}}}}|request||{{LSLC|Requires Permissions}}{{LSLC|Permissions/Script/{{{1}}}}}}}</includeonly>
}}<includeonly>{{#ifeq:{{{mode|}}}{{#var:mode}}|request||[[Category:LSL Requires Permissions]][[Category:LSL Permissions/Script/{{{1}}}]]}}</includeonly>

Revision as of 09:05, 22 July 2007