|
|
(20 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#if: | | <noinclude>[[/docs|Template Documentation]] |
| {{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{{sort|{{#if:{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}}}}}}}}}
| | |
| }}{{DEFAULTSORT:{{#var:sort}}}}
| | {{{{FULLPAGENAME}}|name|type|value|hex=hex|c=comment}} |
| {{#if: | | {| |
| {{#vardefine:history|{{{history|}}}}} | | {{LSL DefineRow|value|2={{#var:value}}}} |
| {{#vardefine:func_id|{{{func_id|}}}}}
| | {{LSL DefineRow|cvalue|2={{#var:cvalue}}}} |
| {{#vardefine:p1_name|{{{p1_name|}}}}}{{#vardefine:p1_type|{{{p1_type|}}}}}{{#vardefine:p1_desc|{{#var:p_{{#var:p1_name}}_desc}}{{{p1_desc|}}}}}
| | {{LSL DefineRow|hvalue|2={{#var:hvalue}}}} |
| {{#vardefine:p2_name|{{{p2_name|}}}}}{{#vardefine:p2_type|{{{p2_type|}}}}}{{#vardefine:p2_desc|{{#var:p_{{#var:p2_name}}_desc}}{{{p2_desc|}}}}} | | {{LSL DefineRow|type|2={{#var:type}}}} |
| {{#vardefine:p3_name|{{{p3_name|}}}}}{{#vardefine:p3_type|{{{p3_type|}}}}}{{#vardefine:p3_desc|{{#var:p_{{#var:p3_name}}_desc}}{{{p3_desc|}}}}} | | {{LSL DefineRow|comment|2={{#var:comment}}}} |
| {{#vardefine:p4_name|{{{p4_name|}}}}}{{#vardefine:p4_type|{{{p4_type|}}}}}{{#vardefine:p4_desc|{{#var:p_{{#var:p4_name}}_desc}}{{{p4_desc|}}}}} | | |} |
| {{#vardefine:p5_name|{{{p5_name|}}}}}{{#vardefine:p5_type|{{{p5_type|}}}}}{{#vardefine:p5_desc|{{#var:p_{{#var:p5_name}}_desc}}{{{p5_desc|}}}}} | | </noinclude><includeonly>{{#if: |
| {{#vardefine:p6_name|{{{p6_name|}}}}}{{#vardefine:p6_type|{{{p6_type|}}}}}{{#vardefine:p6_desc|{{#var:p_{{#var:p6_name}}_desc}}{{{p6_desc|}}}}} | | {{#vardefine:hvalue|{{{hex|}}}}} |
| {{#vardefine:p7_name|{{{p7_name|}}}}}{{#vardefine:p7_type|{{{p7_type|}}}}}{{#vardefine:p7_desc|{{#var:p_{{#var:p7_name}}_desc}}{{{p7_desc|}}}}} | | {{#vardefine:cvalue|{{{3|}}}}} |
| {{#vardefine:p8_name|{{{p8_name|}}}}}{{#vardefine:p8_type|{{{p8_type|}}}}}{{#vardefine:p8_desc|{{#var:p_{{#var:p8_name}}_desc}}{{{p8_desc|}}}}}
| | {{#vardefine:value|{{#if:{{#var:hvalue}}|{{{{#if:{{#var:hvalue}}|LSL Hex|!}}|{{#var:hvalue}}|{{#var:cvalue}}}}|{{#var:cvalue}}}}}} |
| {{#vardefine:p9_name|{{{p9_name|}}}}}{{#vardefine:p9_type|{{{p9_type|}}}}}{{#vardefine:p9_desc|{{#var:p_{{#var:p9_name}}_desc}}{{{p9_desc|}}}}}
| | {{#vardefine:comment|{{{c|}}}}} |
| {{#vardefine:p10_name|{{{p10_name|}}}}}{{#vardefine:p10_type|{{{p10_type|}}}}}{{#vardefine:p10_desc|{{#var:p_{{#var:p10_name}}_desc}}{{{p10_desc|}}}}}
| | {{#vardefine:type|{{{2|}}}}} |
| {{#vardefine:p11_name|{{{p11_name|}}}}}{{#vardefine:p11_type|{{{p11_type|}}}}}{{#vardefine:p11_desc|{{#var:p_{{#var:p11_name}}_desc}}{{{p11_desc|}}}}}
| | }}{{HoverLink|1={{{1}}}|2={{{2|}}} {{{1}}}{{#if:{{#var:hvalue}}| = {{#var:hvalue}}}}{{#if:{{#var:cvalue}}| = {{#var:cvalue}}}};{{#if:{{{c|}}}|//{{{c|}}}}}|3={{#if:{{{4|}}}|{{{4|{{{1}}}}}}|{{{1}}}}}}} |
| {{#vardefine:p12_name|{{{p12_name|}}}}}{{#vardefine:p12_type|{{{p12_type|}}}}}{{#vardefine:p12_desc|{{#var:p_{{#var:p12_name}}_desc}}{{{p12_desc|}}}}}
| | </includeonly> |
| {{#vardefine:return_type|{{#var:return_type}}{{{return_type|}}} }}
| |
| {{#vardefine:return_text|{{#var:return_text}}{{{return_text|}}} }}
| |
| {{#vardefine:name|{{{func}}}}}
| |
| {{#vardefine:constants_nb|{{#var:constants_nb}}
| |
| {{{constants|}}}}}
| |
| {{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/>}}{{{spec|}}}}}
| |
| {{#vardefine:examples|{{#var:examples}}{{{examples|}}}}} | |
| {{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}} | |
| {{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}} | |
| {{#vardefine:also_tests|{{#var:also_tests}} | |
| {{{also_tests|}}}}}
| |
| {{#vardefine:also_events|{{#var:also_events}}
| |
| {{{also_events|}}}}} | |
| {{#vardefine:also_functions|{{#var:also_functions}} | |
| {{{also_functions|}}}}}
| |
| {{#vardefine:also_articles|{{#var:also_articles}}
| |
| {{{also_articles|}}}}}
| |
| {{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}}
| |
| {{#vardefine:notes|{{#var:notes}}{{{notes|}}}}}
| |
| {{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
| |
| {{#vardefine:self|{{#var:self}}{{{self|}}}}} | |
| {{#vardefine:type|function}} | |
| {{#vardefine:template}}
| |
| {{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|*This function causes the script to sleep for {{{func_sleep|}}} seconds.}}{{#if:{{#var:caveats}}|
| |
| {{#var:caveats}}}}
| |
| {{{caveats|}}}}}
| |
| {{#vardefine:location|{{#var:location}}{{{location|}}}}}
| |
| {{#vardefine:return_end|<nowiki>;</nowiki>}}
| |
| {{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{{func_footnote|}}}{{{func_footer|}}}}}
| |
| {{#vardefine:header_desc|{{#if:{{#var:header_desc}}|{{#var:header_desc}}<br/>}}{{#var:header_desc}}{{{func_desc|}}}}}
| |
| {{{{#ifeq:{{#var:mode}}|god|LSL_Generic/god|!}}|}}
| |
| {{{{#ifeq:{{#var:mode}}|request|LSL_Generic/request|!}}|}}
| |
| {{{{#if:{{{deprecated|}}}{{{depreciated|}}}|LSL_Generic/deprecated|!}}|{{{deprecated|}}}{{{depreciated|}}}|}}
| |
| {{{{#if:{{{inventory|}}}|LSL_Function/inventory|!}}|{{{inventory|}}}|}}
| |
| {{{{#if:{{{permission|}}}|LSL_Function/permission|!}}|{{{permission|}}}|}}
| |
| {{{{#if:{{{negative_index|}}}|LSL_Function/negative_index|!}}|{{{negative_index|}}}|}}
| |
| {{#vardefine:header|{{#var:header}}
| |
| {{#if:{{#var:func_id}}{{#var:mode}}||
| |
| <div id="box" style="background:red;">
| |
| '''Don't delete the 'func_id''''
| |
| <div style="padding: 0.5em;background:#ffffff;">
| |
| ''func_id is a bit of technical information that should not be removed as it is pertinent to anyone writing an LSL compiler or decompiler, so you go and revert the page or set the value properly right now :P.''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }} }}
| |
| {{#if:{{{also|}}}|<div id="box" style="background:yellow;">
| |
| ''' 'also' Tag Removed'''
| |
| <div style="padding: 0.5em;background:#ffffff;">
| |
| ''(Please use 'also_header','also_events','also_functions','also_articles', or 'also_footer')''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }} }}
| |
| {{#if:{{#if:{{#var:return_type}}|{{#var:return_text}}}}{{{func_desc|}}}||<div id="box" style="background:yellow;">
| |
| ''' 'return_text' and 'func_desc' can both not be undefined'''
| |
| <div style="padding: 0.5em;background:#ffffff;">
| |
| ''(Please use 'return_text' or 'func_desc' to describe the functions actions.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }} }}
| |
| }}
| |
| {{#vardefine:header_floater|<table><tr>
| |
| <td> {{HoverText|{{#var:func_id}}|The function index number.}}
| |
| <td> [[LSL Function ID|Function ID]]
| |
| </tr><tr>
| |
| <td> {{HoverText|{{{func_sleep|}}}|The number of seconds this script will sleep after executing this function.}}
| |
| <td> [[LSL Delay|Delay]]
| |
| </tr>{{#if:{{{func_complexity|}}}|<tr>
| |
| <td> {{HoverText|{{{func_complexity|}}}|The complexity of the function based on the parameters.}}
| |
| <td> [[LSL Complexity|Compl.]]
| |
| </tr>}}<tr>
| |
| <td> {{HoverText|{{{func_energy|}}}|The quantity of energy consumed by this function.}}
| |
| <td> [[Energy|Energy]]
| |
| </tr></table>}}
| |
| {{#vardefine:header_text|{{LSL Generic/Text}}}}
| |
| {{#vardefine:header_title|Function: {{LSL Generic/Title}}}}
| |
| }}{{#if:{{#var:nofixname}}||<div id="RealTitleBanner" style="visibility:hidden"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{func}}}</span></div>
| |
| }}{{#if:{{#var:self}}|| __NOEDITSECTION__
| |
| }}
| |
| {{#var:header}}
| |
| {{{!}} width="100%"
| |
| {{!}}-
| |
| {{!}} valign="top" {{!}} <div id="box">
| |
| <h2>{{#var:header_title}}</h2>
| |
| <div style="padding: 0.5em">{{#if:{{#var:header_floater}}|<div id="box" style="float:right;">{{#var:header_floater}}</div>}}
| |
| {{#var:header_text}}
| |
| {{#if:{{#var:header_floater}}|<div style="clear:right;" ></div>}}
| |
| </div></div>
| |
| {{#if:{{#var:spec}}|{{!}}-
| |
| {{!}}<div id="box">
| |
| <h2>{{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}}</h2>
| |
| <div style="padding: 0.5em">
| |
| {{#var:spec}}
| |
| </div></div>}}
| |
| {{!}}-
| |
| {{#if:{{#var:constants_nb}}{{#var:constants}}|
| |
| {{!}}{{#var:constants_nb}}{{#if:{{#var:constants}}|
| |
| <div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
| |
| {{#var:constants}}
| |
| </div>}}}}
| |
| {{!}}-
| |
| {{#if:{{#var:caveats}}|
| |
| {{!}}<div id="box"><h2>{{#if:{{#var:T_Caveats}}|{{#var:T_Caveats}}|Caveats}}</h2>
| |
| <div style="padding: 0.5em">
| |
| {{#var:caveats}}
| |
| </div></div>}}
| |
| {{!}}-
| |
| {{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
| |
| {{!}}<div id="box"><h2>{{#if:{{#var:T_Examples}}|{{#var:T_Examples}}|Examples}}</h2>
| |
| <div style="padding: 0.5em">
| |
| {{#var:examples}} | |
| </div></div>}}
| |
| {{!}}-
| |
| {{#if:{{#var:helpers}}|
| |
| {{!}}<div id="box"><h2>{{#if:{{#var:T_Useful_Snippets}}|{{#var:T_Useful_Snippets}}|Useful Snippets}}</h2>
| |
| <div style="padding: 0.5em">
| |
| {{#var:helpers}} | |
| </div></div>}}
| |
| {{!}}-
| |
| {{#if:{{#var:notes}}|
| |
| {{!}}<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
| |
| <div style="padding: 0.5em">
| |
| {{#var:notes}}
| |
| </div></div>}}
| |
| {{!}}-
| |
| {{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}|
| |
| {{!}}<div id="box"><h2>{{#if:{{#var:T_See_Also}}|{{#var:T_See Also}}|See Also}}</h2>
| |
| <div style="padding: 0.5em">
| |
| {{#if:{{#var:also_header}}|
| |
| {{#var:also_header}}}}{{#if:{{#var:also_events}}|
| |
| <h3>{{#if:{{#var:T_Also_Events}}|{{#var:T_Also_Events}}|Events}}</h3>
| |
| {{{!}}
| |
| {{#var:also_events}}
| |
| {{!}}} }}{{#if:{{#var:also_functions}}|
| |
| <h3>{{#if:{{#var:T_Also_Functions}}|{{#var:T_Also_Functions}}|Functions}}</h3>
| |
| {{{!}}
| |
| {{#var:also_functions}}
| |
| {{!}}} }}{{#if:{{#var:also_tests}}|
| |
| <h3>{{#if:{{#var:T_Also_Tests}}|{{#var:T_Also_Tests}}|Tests}}</h3>
| |
| {{{!}}
| |
| {{#var:also_tests}}
| |
| {{!}}} }}{{#if:{{#var:also_articles}}|
| |
| <h3>{{#if:{{#var:T_Also_Articles}}|{{#var:T_Also_Articles}}|Articles}}</h3>
| |
| {{{!}}
| |
| {{#var:also_articles}}
| |
| {{!}}} }}
| |
| {{#if:{{#var:also_footer}}|<br/>{{#var:also_footer}}}}
| |
| </div></div>}}
| |
| {{!}}-
| |
| {{#if:{{#var:location}}|
| |
| {{!}}
| |
| <div id="box">
| |
| <h2>{{#if:{{#var:T_Source_Location}}|{{#var:T_Source_Location}}|Source Location}}</h2>
| |
| <div style="padding: 0.5em">
| |
| {{#var:location}}
| |
| </div></div>}}
| |
| {{!}}}
| |
| {{#var:footer}}
| |
| {{#if:{{#var:self}}|| {{#ifeq:{{#var:mode}}|request|| [[Category:LSL Functions]] {{#if:{{#var:examples}}||[[Category:LSL Needs Example]]}}}} {{#if:{{{cat1|}}}|[[Category:LSL {{{cat1}}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2}}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3}}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4}}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5}}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6}}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7}}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8}}}]]}} }}
| |
| </includeonly><noinclude> | |
| <div id="box">
| |
| {{{{FULLPAGENAMEE}}
| |
| |func=MyFunction
| |
| |func_id=-1
| |
| |func_sleep=100.5
| |
| |func_energy=0.0
| |
| |func_desc=A fictitious function
| |
| |func_footnote=func_footnote
| |
| |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
| |
| |p7_type=rotation|p7_name=r|p7_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_tests=*also_tests
| |
| |also_footer=also_footer
| |
| |notes=notes
| |
| |mode
| |
| |self
| |
| |location=location
| |
| }}
| |
| </div></noinclude>
| |