Difference between revisions of "Template:LSLFunction"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
{{ #if: {{{p5|}}}{{{p5t|}}} | | {{ #if: {{{p5|}}}{{{p5t|}}} | | ||
{{ #if: {{{p6|}}}{{{p6t|}}} | | {{ #if: {{{p6|}}}{{{p6t|}}} | | ||
<table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;"> | <table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;" width="100%"> | ||
<tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | <tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | ||
<tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | <tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | ||
Line 36: | Line 36: | ||
</table> | </table> | ||
| | | | ||
<table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;"> | <table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;" width="100%"> | ||
<tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | <tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | ||
<tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | <tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | ||
Line 44: | Line 44: | ||
</table> | </table> | ||
}} | | }} | | ||
<table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;"> | <table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;" width="100%"> | ||
<tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | <tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | ||
<tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | <tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | ||
Line 51: | Line 51: | ||
</table> | </table> | ||
}} | | }} | | ||
<table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;"> | <table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;" width="100%"> | ||
<tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | <tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | ||
<tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | <tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | ||
Line 57: | Line 57: | ||
</table> | </table> | ||
}} | | }} | | ||
<table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;"> | <table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;" width="100%"> | ||
<tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | <tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | ||
<tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | <tr><td>{{{p2t|}}}</td><td> {{{p2|}}} </td><td> - </td><td> {{ #if: {{{p2d|}}} | {{{p2d}}} | ?}} </td></tr> | ||
</table> | </table> | ||
}} | | }} | | ||
<table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;"> | <table style="border-width: 1px 1px 1px 1px;border-style: dotted dotted dotted dotted;border-color: gray gray gray gray;border-collapse: collapse;" width="100%"> | ||
<tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | <tr><td>{{{p1t|}}}</td><td> {{{p1|}}} </td><td> - </td><td> {{ #if: {{{p1d|}}} | {{{p1d}}} | ?}} </td></tr> | ||
</table> | </table> |
Revision as of 16:03, 25 January 2007
This template is used to inline a table that displays the function specifications.
Usage
Exclude any values that do not need to be set.
{{LslFunction |function name |function ID |sleep |energy |tb = beginning text |te = ending text |r = return type |rd = return description |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
Returns a r, rd
p1t | p1 | - | p1d |
p2t | p2 | - | p2d |
p3t | p3 | - | p3d |
p4t | p4 | - | p4d |
p5t | p5 | - | p5d |
p6t | p6 | - | p6d |
te
Example
{{LslFunction|llSin|0|0.0|10.0|r=float|p1=theta|p1t=float|p1d=Angle in radians}}
{{LslFunction|llPow|5|0.0|10.0|r=float|p1t=float|p1=base|p2t=float|p2=exponent}}
{{LslFunction|llRefreshPrimURL|306|20.0|10.0}}
llRefreshPrimURL( );