Difference between revisions of "Template:LSLFunction"

From Second Life Wiki
Jump to navigation Jump to search
Line 3: Line 3:
</noinclude>
</noinclude>
<includeonly><div id="box">
<includeonly><div id="box">
== {{#if: {{{r|}}}|{{LSLG|{{{r}}}}}||}} {{{1}}}( {{ #if: {{{p1|}}}{{{p1t|}}}{{{p1d|}}} | {{LSLG|{{{p1t}}}}} {{{p1}}}{{ #if: {{{p2|}}}{{{p2t|}}}{{{p2d|}}} |, {{LSLG|{{{p2t}}}}} {{{p2}}} {{ #if: {{{p3|}}}{{{p3t|}}}{{{p3d|}}} |, {{LSLG|{{{p3t}}}}} {{{p3}}}{{ #if: {{{p4|}}}{{{p4t|}}}{{{p4d|}}} |, {{LSLG|{{{p4t}}}}} {{{p4}}}{{ #if: {{{p5|}}}{{{p5t|}}}{{{p5d|}}} |, {{LSLG|{{{p5t}}}}} {{{p5}}}{{ #if: {{{p6|}}}{{{p6t|}}}{{{p6d|}}} |, {{LSLG|{{{p6t}}}}} {{{p6}}}{{ #if: {{{p7|}}}{{{p7t|}}}{{{p7d|}}} |, {{LSLG|{{{p7t}}}}} {{{p7}}}{{ #if: {{{p8|}}}{{{p8t|}}}{{{p8d|}}} |, {{LSLG|{{{p8t}}}}} {{{p8}}}{{ #if: {{{p9|}}}{{{p9t|}}}{{{p9d|}}} |, {{LSLG|{{{p9t}}}}} {{{p9}}}{{ #if: {{{p10|}}}{{{p10t|}}}{{{p10d|}}} |, {{LSLG|{{{p10t}}}}} {{{p10}}}{{ #if: {{{p11|}}}{{{p11t|}}}{{{p11d|}}} |, {{LSLG|{{{p11t}}}}} {{{p11}}}{{ #if: {{{p12|}}}{{{p12t|}}}{{{p12d|}}} |, {{LSLG|{{{p12t}}}}} {{{p12}}} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} ); ==
== {{#if: {{{r|}}}|{{LSLG|{{{r}}}}}||}} {{{1}}}( {{ #if: {{{p1|}}}{{{p1t|}}} | {{LSLG|{{{p1t}}}}} {{{p1}}}{{ #if: {{{p2|}}}{{{p2t|}}} |, {{LSLG|{{{p2t}}}}} {{{p2}}} {{ #if: {{{p3|}}}{{{p3t|}}} |, {{LSLG|{{{p3t}}}}} {{{p3}}}{{ #if: {{{p4|}}}{{{p4t|}}} |, {{LSLG|{{{p4t}}}}} {{{p4}}}{{ #if: {{{p5|}}}{{{p5t|}}} |, {{LSLG|{{{p5t}}}}} {{{p5}}}{{ #if: {{{p6|}}}{{{p6t|}}} |, {{LSLG|{{{p6t}}}}} {{{p6}}}{{ #if: {{{p7|}}}{{{p7t|}}} |, {{LSLG|{{{p7t}}}}} {{{p7}}}{{ #if: {{{p8|}}}{{{p8t|}}} |, {{LSLG|{{{p8t}}}}} {{{p8}}}{{ #if: {{{p9|}}}{{{p9t|}}} |, {{LSLG|{{{p9t}}}}} {{{p9}}}{{ #if: {{{p10|}}}{{{p10t|}}} |, {{LSLG|{{{p10t}}}}} {{{p10}}}{{ #if: {{{p11|}}}{{{p11t|}}} |, {{LSLG|{{{p11t}}}}} {{{p11}}}{{ #if: {{{p12|}}}{{{p12t|}}} |, {{LSLG|{{{p12t}}}}} {{{p12}}} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} ); ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
<div id="box" style="float:right;">
<div id="box" style="float:right;">
Line 19: Line 19:
</div>
</div>
{{ #if: {{{tb|}}} | {{{tb}}} | }}
{{ #if: {{{tb|}}} | {{{tb}}} | }}
{{ #if: {{{p1|}}}{{{p1t|}}}{{{p1d|}}} | * {{{p1}}} - {{{p1d}}}
{{ #if: {{{p1|}}}{{{p1t|}}} | * {{{p1}}} - {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}}
{{ #if: {{{p2|}}}{{{p2t|}}}{{{p2d|}}} | * {{{p2}}} - {{{p2d}}}
{{ #if: {{{p2|}}}{{{p2t|}}} | * {{{p2}}} - {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}}
{{ #if: {{{p3|}}}{{{p3t|}}}{{{p3d|}}} | * {{{p3}}} - {{{p3d}}}
{{ #if: {{{p3|}}}{{{p3t|}}} | * {{{p3}}} - {{ #if: {{{p3d|}}} | {{{p3d}}} | ?}}
{{ #if: {{{p4|}}}{{{p4t|}}}{{{p4d|}}} | * {{{p4}}} - {{{p4d}}}
{{ #if: {{{p4|}}}{{{p4t|}}} | * {{{p4}}} - {{ #if: {{{p4d|}}} | {{{p4d}}} | ?}}
{{ #if: {{{p5|}}}{{{p5t|}}}{{{p5d|}}} | * {{{p5}}} - {{{p5d}}}
{{ #if: {{{p5|}}}{{{p5t|}}} | * {{{p5}}} - {{ #if: {{{p5d|}}} | {{{p5d}}} | ?}}
{{ #if: {{{p6|}}}{{{p6t|}}}{{{p6d|}}} | * {{{p6}}} - {{{p6d}}}
{{ #if: {{{p6|}}}{{{p6t|}}} | * {{{p6}}} - {{ #if: {{{p6d|}}} | {{{p6d}}} | ?}}
{{ #if: {{{p7|}}}{{{p7t|}}}{{{p7d|}}} | * {{{p7}}} - {{{p7d}}}
{{ #if: {{{p7|}}}{{{p7t|}}} | * {{{p7}}} - {{ #if: {{{p7d|}}} | {{{p7d}}} | ?}}
{{ #if: {{{p8|}}}{{{p8t|}}}{{{p8d|}}} | * {{{p8}}} - {{{p8d}}}
{{ #if: {{{p8|}}}{{{p8t|}}} | * {{{p8}}} - {{ #if: {{{p8d|}}} | {{{p8d}}} | ?}}
{{ #if: {{{p9|}}}{{{p9t|}}}{{{p9d|}}} | * {{{p9}}} - {{{p9d}}}
{{ #if: {{{p9|}}}{{{p9t|}}} | * {{{p9}}} - {{ #if: {{{p9d|}}} | {{{p9d}}} | ?}}
{{ #if: {{{p10|}}}{{{p10t|}}}{{{p10d|}}} | * {{{p10}}} - {{{p10d}}}
{{ #if: {{{p10|}}}{{{p10t|}}} | * {{{p10}}} - {{ #if: {{{p10d|}}} | {{{p10d}}} | ?}}
{{ #if: {{{p11|}}}{{{p11t|}}}{{{p11d|}}} | * {{{p11}}} - {{{p11d}}}
{{ #if: {{{p11|}}}{{{p11t|}}} | * {{{p11}}} - {{ #if: {{{p10d|}}} | {{{p10d}}} | ?}}
{{ #if: {{{p12|}}}{{{p12t|}}}{{{p12d|}}} | * {{{p12}}} - {{{p12d}}}
{{ #if: {{{p12|}}}{{{p12t|}}} | * {{{p12}}} - {{ #if: {{{p10d|}}} | {{{p10d}}} | ?}}
| }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }}
| }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }}
{{ #if: {{{te|}}} | {{{te}}} | }}
{{ #if: {{{te|}}} | {{{te}}} | }}

Revision as of 15:21, 25 January 2007



This template is used to inline a table that displays the function specifications.

Usage

{{LslFunction |function name |function ID |sleep |energy |tb = beginning text |te = ending text |r = return |p1 = parameter name |p1t = parameter type |p1d = parameter description |p2 = parameter name |p2t = parameter mater type |p2d = parameter description |p3 = parameter name |p3t = parameter type |p3d = parameter description |p4 = parameter name |p4t = parameter type |p4d = parameter description |p5 = parameter name |p5t = parameter type |p5d = parameter description |p6 = parameter name |p6t = parameter mater type |p6d = parameter description |p7 = parameter name |p7t = parameter type |p7d = parameter description |p8 = parameter name |p8t = parameter type |p8d = parameter description |p9 = parameter name |p9t = parameter type |p9d = parameter description |p10 = parameter name |p10t = parameter mater type |p10d = parameter description |p11 = parameter name |p11t = parameter type |p11d = parameter description |p12 = parameter name |p12t = parameter type |p12d = parameter description }}


r function_name( p1t p1, p2t p2 , p3t p3, p4t p4, p5t p5, p6t p6, p7t p7, p8t p8, p9t p9, p10t p10, p11t p11, p12t p12 );

function id Function ID
sleep Sleep
energy Energy

tb

  • p1 - p1d
  • p2 - p2d
  • p3 - p3d
  • p4 - p4d
  • p5 - p5d
  • p6 - p6d
  • p7 - p7d
  • p8 - p8d
  • p9 - p9d
  • p10 - p10d
  • p11 - p10d
  • p12 - p10d

te

Example

{{LslFunction|llSin|0|0.0|10.0|r=float|p1=theta|p1t=float|p1d=Angle in radians}}


float llSin( float theta );

0 Function ID
0.0 Sleep
10.0 Energy
  • theta - Angle in radians

{{LslFunction|llPow|5|0.0|10.0|r=float|p1t=float|p1=base|p1d=?|p2t=float|p2=exponent|p2d=?}}


float llPow( float base, float exponent );

5 Function ID
0.0 Sleep
10.0 Energy
  • base - ?
  • exponent - ?

{{LslFunction|llRefreshPrimURL|306|20.0|10.0}}


llRefreshPrimURL( );

306 Function ID
20.0 Sleep
10.0 Energy