Difference between revisions of "Template:LSL Function"
Jump to navigation
Jump to search
Line 36: | Line 36: | ||
|sort | |sort | ||
|permission | |permission | ||
|negative_index | |||
}} | }} | ||
</pre> | </pre> | ||
Line 72: | Line 73: | ||
|self=self | |self=self | ||
|permission=PERMISSION_FLAG | |permission=PERMISSION_FLAG | ||
|negative_index=true | |||
}} | }} | ||
</div> | </div> | ||
Line 90: | Line 92: | ||
|header_desc={{{func_desc|}}} | |header_desc={{{func_desc|}}} | ||
|return_text={{#if:{{{return_text|}}}|{{{return_text|}}}|.}} | |return_text={{#if:{{{return_text|}}}|{{{return_text|}}}|.}} | ||
|header_footnote={{{func_footnote|}}}{{{func_footer|}}}{{#if: {{{permission|}}}| {{#if: {{{func_footnote|}}}{{{func_footer|}}}|<br/>}}Requires the {{LSLG|{{{permission}}}}} permission to run.}} | |header_footnote={{{func_footnote|}}}{{{func_footer|}}}{{#if: {{{permission|}}}| {{#if: {{{func_footnote|}}}{{{func_footer|}}}|<br/>}}Requires the {{LSLG|{{{permission}}}}} permission to run.}}{{#if: {{{negative_index|}}}| {{#if: {{{func_footnote|}}}{{{func_footer|}}}{{{permission}}}|<br/>}}{{#ifeq:|{{{negative_index|}}}|false|This function ''does not'' support {{LSLGC|Negative Index|negative indexes}}.|This function supports [[:Category:LSL Negative Index|neative indexes]].}}}} | ||
|deprecated={{{deprecated|}}}{{{depreciated|}}} | |deprecated={{{deprecated|}}}{{{depreciated|}}} | ||
|return_type={{{return_type|}}} | |return_type={{{return_type|}}} | ||
Line 121: | Line 123: | ||
|also_articles={{{also_articles|}}}{{#if: {{{permission|}}}| | |also_articles={{{also_articles|}}}{{#if: {{{permission|}}}| | ||
* {{LSLG|Script permissions}} | * {{LSLG|Script permissions}} | ||
}}{{#ifeq: {{{negative_index|}}}|true| | |||
* {{LSLGC|Negative Index}} | |||
}} | }} | ||
|also_footer={{{also_footer|}}} | |also_footer={{{also_footer|}}} | ||
Line 144: | Line 148: | ||
</tr> | </tr> | ||
</table> | </table> | ||
}}{{#if:{{{self|}}}||{{#if:{{{sort|}}}|[[Category:LSL Functions|{{{sort}}}]]}}{{#if: {{{permission|}}}|[[Category:LSL Requires Permissions|{{{sort}}}]]}}}}</includeonly> | }}{{#if:{{{self|}}}||{{#if:{{{sort|}}}|[[Category:LSL Functions|{{{sort|}}}]]}}{{#if: {{{permission|}}}|[[Category:LSL Requires Permissions|{{{sort|}}}]]}}{{#ifeq:|{{{negative_index|}}}|true|This function supports [[Category:LSL Negative Index|{{{sort|}}}]].}}}}</includeonly> |
Revision as of 21:59, 29 January 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
{{LSL_Function |func |func_id |func_sleep |func_desc |func_footnote |return_type |return_text |p1_type|p1_name|p1_desc |p2_type|p2_name|p2_desc |p3_type|p3_name|p3_desc |p4_type|p4_name|p4_desc |p5_type|p5_name|p5_desc |p6_type|p6_name|p6_desc |p7_type|p7_name|p7_desc |p8_type|p8_name|p8_desc |p9_type|p9_name|p9_desc |p10_type|p10_name|p10_desc |p11_type|p11_name|p11_desc |p12_type|p12_name|p12_desc |constants |spec |caveats |examples |helpers |also_header |also_functions |also_articles |also_footer |notes |mode |deprecated |sort |permission |negative_index }}
The LSL_Function template is a intermediate template for LSL_Generic, which handles the formating for both functions and events (LSL_Event is also an intermediate template). The main job of this template is to change the parameter, names & setup the right-side floater and set the additional copyright message. Also makes permission requirements a part of the template.
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Examples