Difference between revisions of "Template:LSL Function"

From Second Life Wiki
Jump to navigation Jump to search
Line 12: Line 12:
|-
|-
|
|
{{{LslFunction|{{{name}}}|{{{1}}}|{{{2}}}|{{{3}}}}}|r={{{r}}} {{ #if: {{{p1|}}} |p1t={{{p1t}}}|p1={{{p1}}}|p1d={{{p1d}}} {{ #if: {{{p2|}}} |p2t={{{p2t}}}|p2={{{p2}}}|p2d={{{p2d}}} {{ #if: {{{p3|}}} |p3t={{{p3t}}}|p3={{{p3}}}|p3d={{{p3d}}} {{ #if: {{{p4|}}} |p4t={{{p4t}}}|p4={{{p4}}}|p4d={{{p4d}}} {{ #if: {{{p5|}}} |p5t={{{p5t}}}|p5={{{p5}}}|p5d={{{p5d}}} {{ #if: {{{p6|}}} |p6t={{{p6t}}}|p6={{{p6}}}|p6d={{{p6d}}} {{ #if: {{{p7|}}} |p7t={{{p7t}}}|p7={{{p7}}}|p7d={{{p7d}}} {{ #if: {{{p8|}}} |p8t={{{p8t}}}|p8={{{p8}}}|p8d={{{p8d}}} {{ #if: {{{p9|}}} |p9t={{{p9t}}}|p9={{{p9}}}|p9d={{{p9d}}} {{ #if: {{{p10|}}} |p10t={{{p10t}}}|p10={{{p10}}}|p10d={{{p10d}}} {{ #if: {{{p11|}}} |p11t={{{p11t}}}|p11={{{p11}}}|p11d={{{p11d}}} {{ #if: {{{p12|}}} |p12t={{{p12t}}}|p12={{{p12}}}|p12d={{{p12d}}} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }}|tb={{{tb}}} }}}
{{LslFunction
|{{{name}}}|{{{1}}}|{{{2}}}|{{{3}}}}}
|r={{{r}}}
{{ #if: {{{p1|}}} |p1t={{{p1t}}}|p1={{{p1}}}|p1d={{{p1d}}}
{{ #if: {{{p2|}}} |p2t={{{p2t}}}|p2={{{p2}}}|p2d={{{p2d}}}
{{ #if: {{{p3|}}} |p3t={{{p3t}}}|p3={{{p3}}}|p3d={{{p3d}}}
{{ #if: {{{p4|}}} |p4t={{{p4t}}}|p4={{{p4}}}|p4d={{{p4d}}}
{{ #if: {{{p5|}}} |p5t={{{p5t}}}|p5={{{p5}}}|p5d={{{p5d}}}
{{ #if: {{{p6|}}} |p6t={{{p6t}}}|p6={{{p6}}}|p6d={{{p6d}}}
{{ #if: {{{p7|}}} |p7t={{{p7t}}}|p7={{{p7}}}|p7d={{{p7d}}}
{{ #if: {{{p8|}}} |p8t={{{p8t}}}|p8={{{p8}}}|p8d={{{p8d}}}
{{ #if: {{{p9|}}} |p9t={{{p9t}}}|p9={{{p9}}}|p9d={{{p9d}}}
{{ #if: {{{p10|}}} |p10t={{{p10t}}}|p10={{{p10}}}|p10d={{{p10d}}}
{{ #if: {{{p11|}}} |p11t={{{p11t}}}|p11={{{p11}}}|p11d={{{p11d}}}
{{ #if: {{{p12|}}} |p12t={{{p12t}}}|p12={{{p12}}}|p12d={{{p12d}}} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }} | }}
|tb={{{tb}}}
}}
|-
|-
|
|
Line 110: Line 126:


----
----
{{LSL_Function|name=llFunction|14|0.0|10.0|r=string|p1=avatar|p1t=key|p1d=This is a key parameter which expects to be passed a valid avatar key.|p2=widgets|p2t=integer|p2d=This is an integer parameter which indicates the number of widgets to process.|p3=stickLength|p3t=float|p3d=This is a float parameter used to describe the length of the stick used to whack bad formatters.|tb=This function consumes widgets while it simultaneously animates a person whacking bad formatters.  The widgets are destroyed.  This is the lede. <!-- yes, lede is a word -->  (short high-level description of function, a few sentences to a paragraph)|specification=This function performs this specific set of actions under these circumstances.  If the key passed to it is [[NULL_KEY]], then it will [[shout]] "Nobody's whacking!" on channel 0.|caveats=
{{{LSL_Function
|name=llFunction|14|0.0|10.0
|r=string
|p1=avatar
|p1t=key
|p1d=This is a key parameter which expects to be passed a valid avatar key.
|p2=widgets
|p2t=integer
|p2d=This is an integer parameter which indicates the number of widgets to process.
|p3=stickLength
|p3t=float
|p3d=This is a float parameter used to describe the length of the stick used to whack bad formatters.
|tb=This function consumes widgets while it simultaneously animates a person whacking bad formatters.  The widgets are destroyed.  This is the lede. <!-- yes, lede is a word -->  (short high-level description of function, a few sentences to a paragraph)
|specification=This function performs this specific set of actions under these circumstances.  If the key passed to it is [[NULL_KEY]], then it will [[shout]] "Nobody's whacking!" on channel 0.
|caveats=
* Don't use this function to test whether a key is null.
* Don't use this function to test whether a key is null.
* ''(if you know of none, try using:)'' None known
* ''(if you know of none, try using:)'' None known
Line 130: Line 160:
|notes=
|notes=
* (bulleted footnotes, if necessary - caveats should go in caveats section)
* (bulleted footnotes, if necessary - caveats should go in caveats section)
}}
}}}
----
----



Revision as of 17:44, 25 January 2007


Experimental LSL Function Template

This is an experimental template for the LSL function page format.

Usage example:

{{LSL_Function
|name=llFunction|14|0.0|10.0
|r=string
|p1=avatar
|p1t=key
|p1d=This is a key parameter which expects to be passed a valid avatar key.
|p2=widgets
|p2t=integer
|p2d=This is an integer parameter which indicates the number of widgets to process.
|p3=stickLength
|p3t=float
|p3d=This is a float parameter used to describe the length of the stick used to whack bad formatters.
|tb=This function consumes widgets while it simultaneously animates a person whacking bad formatters.  The widgets are destroyed.  This is the lede. <!-- yes, lede is a word -->  (short high-level description of function, a few sentences to a paragraph)
|specification=This function performs this specific set of actions under these circumstances.  If the key passed to it is [[NULL_KEY]], then it will [[shout]] "Nobody's whacking!" on channel 0.
|caveats=
* Don't use this function to test whether a key is null.
* ''(if you know of none, try using:)'' None known
|examples=
<lsl>
default
{
    state_entry()
    {
        llSay(0,"The absolute value of -4 is: "+(string)llAbs(-4) );
    }
}
</lsl>
|helpers=
<lsl>
</lsl>
|seeAlso=
(similar [[LSL Functions|functions]], related [[LSL Examples|examples]] and pages, etc.)
|notes=
* (bulleted footnotes, if necessary - caveats should go in caveats section)
}}

Produces:


name=llFunction


Bugs

Suggested Changes