Difference between revisions of "Template:LSL Function"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
< | <noinclude> | ||
<pre> | |||
{{LSL_Event | |||
< | |func | ||
|func_id | |||
|func_delay | |||
|func_desc | |||
|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 | |||
}} | }} | ||
</pre> | |||
</ | |||
{{LSL_Function | {{LSL_Function | ||
| | |func=MyFunction | ||
| | |func_id=-1 | ||
| | |func_sleep=100.5 | ||
| | |func_energy=0.0 | ||
| | |func_desc=A fictitious function | ||
| | |return_type=void | ||
| | |return_text=(aka nadda, nothing). | ||
| | |p1_type=integer|p1_name=i|p1_desc | ||
| | |p2_type=float|p2_name=f|p2_desc | ||
| | |p3_type=string|p3_name=s|p3_desc | ||
| | |p4_type=key|p4_name=k|p4_desc | ||
| | |p5_type=list|p5_name=l|p5_desc | ||
| | |p6_type=vector|p6_name=v|p6_desc | ||
|caveats= | |p7_type=rotation|p7_name=r|p7_desc | ||
|constants=constants | |||
|spec=spec | |||
|examples= | |caveats=caveats | ||
|examples=examples | |||
|helpers=helpers | |||
|also_header=also_header | |||
|also_events=*also_events | |||
|also_functions=*also_functions | |||
|also_articles=*also_articles | |||
|also_footer=also_footer | |||
|notes=notes | |||
|mode | |||
|helpers= | |||
| | |||
|notes= | |||
}} | }} | ||
</noinclude> | </noinclude><includeonly> | ||
{{LSL Generic | |||
|{{{func}}}| | |||
|type=function | |||
|header_desc={{{func_desc|}}} | |||
|header_footnote={{{func_footnote|}}} | |||
|deprecated={{{deprecated|}}} | |||
|p1_type={{{p1_type|}}}|p1_name={{{p1_name|}}}|p1_desc={{{p1_desc|}}} | |||
|p2_type={{{p2_type|}}}|p2_name={{{p2_name|}}}|p2_desc={{{p2_desc|}}} | |||
|p3_type={{{p3_type|}}}|p3_name={{{p3_name|}}}|p3_desc={{{p3_desc|}}} | |||
|p4_type={{{p4_type|}}}|p4_name={{{p4_name|}}}|p4_desc={{{p4_desc|}}} | |||
|p5_type={{{p5_type|}}}|p5_name={{{p5_name|}}}|p5_desc={{{p5_desc|}}} | |||
|p6_type={{{p6_type|}}}|p6_name={{{p6_name|}}}|p6_desc={{{p6_desc|}}} | |||
|p7_type={{{p7_type|}}}|p7_name={{{p7_name|}}}|p7_desc={{{p7_desc|}}} | |||
|p8_type={{{p8_type|}}}|p8_name={{{p8_name|}}}|p8_desc={{{p8_desc|}}} | |||
|p9_type={{{p9_type|}}}|p9_name={{{p9_name|}}}|p9_desc={{{p9_desc|}}} | |||
|p10_type={{{p10_type|}}}|p10_name={{{p10_name|}}}|p10_desc={{{p10_desc|}}} | |||
|p11_type={{{p11_type|}}}|p11_name={{{p11_name|}}}|p11_desc={{{p11_desc|}}} | |||
|p12_type={{{p12_type|}}}|p12_name={{{p12_name|}}}|p12_desc={{{p12_desc|}}} | |||
|constants={{{constants|}}} | |||
|spec={{{spec|}}} | |||
|caveats={{{caveats|}}} | |||
|examples={{{examples|}}} | |||
|helpers={{{helpers|}}} | |||
|also_header={{{also_header|}}} | |||
|also_events={{{also_events|}}} | |||
|also_functions={{{also_functions|}}} | |||
|also_articles={{{also_articles|}}} | |||
|also_footer={{{also_footer|}}} | |||
|notes={{{notes|}}} | |||
|mode={{{mode|}}} | |||
|header_floater=<table> | |||
<tr> | |||
<td> {{HoverText|{{{func_id|}}}|The function index number.}} | |||
<td> {{LSLG|Function ID}} | |||
</tr> | |||
<tr> | |||
<td> {{HoverText|{{{func_delay|}}}|The number of seconds this script will sleep after executing this function.}} | |||
<td> {{LSLG|Delay}} | |||
</tr> | |||
<tr> | |||
<td> {{HoverText|{{{func_energy|}}}|The quantity of energy consumed by this function.}} | |||
<td> {{LSLG|Energy}} | |||
</tr> | |||
</table> | |||
}}</includeonly> |
Revision as of 23:29, 27 January 2007
{{LSL_Event |func |func_id |func_delay |func_desc |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 }}
Examples