Difference between revisions of "Template:LSL Event"

From Second Life Wiki
Jump to navigation Jump to search
Line 79: Line 79:
}}
}}
</div>
</div>
</noinclude><includeonly>{{#vardefine:p1_name|{{{p1_name|}}}}}{{#vardefine:p1_type|{{{p1_type|}}}}}{{#vardefine:p1_desc|{{{p1_desc|}}}}}{{#vardefine:p2_name|{{{p2_name|}}}}}{{#vardefine:p2_type|{{{p2_type|}}}}}{{#vardefine:p2_desc|{{{p2_desc|}}}}}{{#vardefine:p3_name|{{{p3_name|}}}}}{{#vardefine:p3_type|{{{p3_type|}}}}}{{#vardefine:p3_desc|{{{p3_desc|}}}}}{{#vardefine:p4_name|{{{p4_name|}}}}}{{#vardefine:p4_type|{{{p4_type|}}}}}{{#vardefine:p4_desc|{{{p4_desc|}}}}}{{#vardefine:p5_name|{{{p5_name|}}}}}{{#vardefine:p5_type|{{{p5_type|}}}}}{{#vardefine:p5_desc|{{{p5_desc|}}}}}{{#vardefine:p6_name|{{{p6_name|}}}}}{{#vardefine:p6_type|{{{p6_type|}}}}}{{#vardefine:p6_desc|{{{p6_desc|}}}}}{{#vardefine:p7_name|{{{p7_name|}}}}}{{#vardefine:p7_type|{{{p7_type|}}}}}{{#vardefine:p7_desc|{{{p7_desc|}}}}}{{#vardefine:p8_name|{{{p8_name|}}}}}{{#vardefine:p8_type|{{{p8_type|}}}}}{{#vardefine:p8_desc|{{{p8_desc|}}}}}{{#vardefine:p9_name|{{{p9_name|}}}}}{{#vardefine:p9_type|{{{p9_type|}}}}}{{#vardefine:p9_desc|{{{p9_desc|}}}}}{{#vardefine:p10_name|{{{p10_name|}}}}}{{#vardefine:p10_type|{{{p10_type|}}}}}{{#vardefine:p10_desc|{{{p10_desc|}}}}}{{#vardefine:p11_name|{{{p11_name|}}}}}{{#vardefine:p11_type|{{{p11_type|}}}}}{{#vardefine:p11_desc|{{{p11_desc|}}}}}{{#vardefine:p12_name|{{{p12_name|}}}}}{{#vardefine:p12_type|{{{p12_type|}}}}}{{#vardefine:p12_desc|{{{p12_desc|}}}}}{{#vardefine:return_end|<nowiki>{ ; }</nowiki>}}{{#vardefine:template}}{{#vardefine:name|{{{event}}}}}{{#vardefine:constants_nb|{{#var:constants_nb}}{{{constants|}}}}}{{#vardefine:spec|{{{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|event}}{{#vardefine:template}}{{#vardefine:caveats|{{#var:caveats}}{{{caveats|}}}}}{{#vardefine:location|{{#var:location}}{{{location|}}}}}{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{ucfirst:{{#var:name}}}}}}}}}}{{#vardefine:footer|{{#var:footer}}}}{{#vardefine:header_footnote|{{{event_footnote|}}}{{{event_footer|}}}}}{{#vardefine:header_desc|{{{event_desc|event_desc undefined}}}}}{{#ifeq:{{#var:mode}}|god|{{{{#ifeq:{{#var:mode}}|god|LSL_Generic/god|!}}|}} }}{{#ifeq:{{#var:mode}}|request|{{{{#ifeq:{{#var:mode}}|request|LSL_Generic/request|!}}|}} }}{{#if:{{{deprecated|}}}{{{depreciated|}}}|{{{{#if:{{{deprecated|}}}{{{depreciated|}}}|LSL_Generic/deprecated|!}}|{{{deprecated|}}}{{{depreciated|}}}|}}}}{{#vardefine:header_floater|<table><tr>
</noinclude><includeonly>
{{#if:
{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{ucfirst:{{#var:name}}}}}}}}}}
}}{{DEFAULTSORT:{{#var:sort}}}}{{#if:
{{#vardefine:p1_name|{{{p1_name|}}}}}{{#vardefine:p1_type|{{{p1_type|}}}}}{{#vardefine:p_{{#var:p1_name}}_desc|{{#var:p_{{#var:p1_name}}_desc}}{{{p1_desc|}}}}}
{{#vardefine:p2_name|{{{p2_name|}}}}}{{#vardefine:p2_type|{{{p2_type|}}}}}{{#vardefine:p_{{#var:p2_name}}_desc|{{#var:p_{{#var:p2_name}}_desc}}{{{p2_desc|}}}}}
{{#vardefine:p3_name|{{{p3_name|}}}}}{{#vardefine:p3_type|{{{p3_type|}}}}}{{#vardefine:p_{{#var:p3_name}}_desc|{{#var:p_{{#var:p3_name}}_desc}}{{{p3_desc|}}}}}
{{#vardefine:p4_name|{{{p4_name|}}}}}{{#vardefine:p4_type|{{{p4_type|}}}}}{{#vardefine:p_{{#var:p4_name}}_desc|{{#var:p_{{#var:p4_name}}_desc}}{{{p4_desc|}}}}}
{{#vardefine:p5_name|{{{p5_name|}}}}}{{#vardefine:p5_type|{{{p5_type|}}}}}{{#vardefine:p_{{#var:p5_name}}_desc|{{#var:p_{{#var:p5_name}}_desc}}{{{p5_desc|}}}}}
{{#vardefine:p6_name|{{{p6_name|}}}}}{{#vardefine:p6_type|{{{p6_type|}}}}}{{#vardefine:p_{{#var:p6_name}}_desc|{{#var:p_{{#var:p6_name}}_desc}}{{{p6_desc|}}}}}
{{#vardefine:p7_name|{{{p7_name|}}}}}{{#vardefine:p7_type|{{{p7_type|}}}}}{{#vardefine:p_{{#var:p7_name}}_desc|{{#var:p_{{#var:p7_name}}_desc}}{{{p7_desc|}}}}}
{{#vardefine:p8_name|{{{p8_name|}}}}}{{#vardefine:p8_type|{{{p8_type|}}}}}{{#vardefine:p_{{#var:p8_name}}_desc|{{#var:p_{{#var:p8_name}}_desc}}{{{p8_desc|}}}}}
{{#vardefine:p9_name|{{{p9_name|}}}}}{{#vardefine:p9_type|{{{p9_type|}}}}}{{#vardefine:p_{{#var:p9_name}}_desc|{{#var:p_{{#var:p9_name}}_desc}}{{{p9_desc|}}}}}
{{#vardefine:p10_name|{{{p10_name|}}}}}{{#vardefine:p10_type|{{{p10_type|}}}}}{{#vardefine:p_{{#var:p10_name}}_desc|{{#var:p_{{#var:p10_name}}_desc}}{{{p10_desc|}}}}}
{{#vardefine:p11_name|{{{p11_name|}}}}}{{#vardefine:p11_type|{{{p11_type|}}}}}{{#vardefine:p_{{#var:p11_name}}_desc|{{#var:p_{{#var:p11_name}}_desc}}{{{p11_desc|}}}}}
{{#vardefine:p12_name|{{{p12_name|}}}}}{{#vardefine:p12_type|{{{p12_type|}}}}}{{#vardefine:p_{{#var:p12_name}}_desc|{{#var:p_{{#var:p12_name}}_desc}}{{{p12_desc|}}}}}
{{#vardefine:return_end|<nowiki>{ ; }</nowiki>}}
{{#vardefine:template}}
{{#vardefine:name|{{{event}}}}}
{{#vardefine:constants_nb|{{#var:constants_nb}}{{{constants|}}}}}
{{#vardefine:spec|{{{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|event}}
{{#vardefine:template}}
{{#vardefine:caveats|{{#var:caveats}}{{{caveats|}}}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
{{#vardefine:footer|{{#var:footer}}}}
{{#vardefine:header_footnote|{{{event_footnote|}}}{{{event_footer|}}}}}
{{#vardefine:header_desc|{{{event_desc|event_desc undefined}}}}}
{{#vardefine:history|{{#var:history}}{{{history}}}}}
{{{{#ifeq:{{#var:mode}}|god|LSL_Generic/god|!}}|}}
{{{{#ifeq:{{#var:mode}}|request|LSL_Generic/request|!}}|}}
{{{{#if:{{{deprecated|}}}{{{depreciated|}}}|LSL_Generic/deprecated|!}}|{{{deprecated|}}}{{{depreciated|}}}|}}
{{#vardefine:header_floater|<table><tr>
<td>{{HoverText|{{{event_id|}}}|The event index number.}}
<td>{{HoverText|{{{event_id|}}}|The event index number.}}
<td>[[LSL Event ID|Event ID]]
<td>[[LSL Event ID|Event ID]]
Line 85: Line 128:
<td>{{HoverText|{{{event_delay|}}}|Seconds between events of this type}}
<td>{{HoverText|{{{event_delay|}}}|Seconds between events of this type}}
<td>[[LSL Delay|Delay]]
<td>[[LSL Delay|Delay]]
</tr></table>}}{{#if:{{#var:header_desc}}||
</tr></table>}}
{{#if:{{#var:header_desc}}||
<div id="box" style="background:yellow;">
<div id="box" style="background:yellow;">
&nbsp;&nbsp;''' 'event_desc' can not be undefined'''
&nbsp;&nbsp;''' 'event_desc' can not be undefined'''
<div style="padding: 0.5em;background:#ffffff;">
<div style="padding: 0.5em;background:#ffffff;">
''(Please define a value for 'event_desc' to describe the events actions.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }} }}{{#vardefine:header_text|{{LSL Generic/Text}}}}{{#vardefine:header_title|Event: {{LSL_Generic/Title}}}}{{LSL_Generic}}{{#if:{{{self|}}}|| {{#ifeq:{{#var:mode}}|request||{{LSLC|Events|{{#var:sort}}}}}} {{#if:{{#var:examples}}||{{LSLC|Needs Example|{{#var:sort}}}}}} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}|{{#var:sort}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}|{{#var:sort}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}|{{#var:sort}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}|{{#var:sort}}}}}} {{#if:{{{cat5|}}}|{{LSLC|{{{cat5}}}|{{#var:sort}}}}}} {{#if:{{{cat6|}}}|{{LSLC|{{{cat6}}}|{{#var:sort}}}}}} {{#if:{{{cat7|}}}|{{LSLC|{{{cat7}}}|{{#var:sort}}}}}} {{#if:{{{cat8|}}}|{{LSLC|{{{cat8}}}|{{#var:sort}}}}}} }}</includeonly>
''(Please define a value for 'event_desc' to describe the events actions.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }} }}
{{#vardefine:header_text|{{LSL Generic/Text}}}}
{{#vardefine:header_title|Event: {{LSL_Generic/Title}}}}
}}{{LSL_Generic}}{{#if:{{{self|}}}|| {{#ifeq:{{#var:mode}}|request||{{LSLC|Events}}}} {{#if:{{#var:examples}}||{{LSLC|Needs Example}}}} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}}}}} {{#if:{{{cat5|}}}|{{LSLC|{{{cat5}}}}}}} {{#if:{{{cat6|}}}|{{LSLC|{{{cat6}}}}}}} {{#if:{{{cat7|}}}|{{LSLC|{{{cat7}}}}}}} {{#if:{{{cat8|}}}|{{LSLC|{{{cat8}}}}}}} }}</includeonly>

Revision as of 17:04, 5 June 2007

{{LSL_Event
|event
|event_id
|event_delay
|event_desc
|event_footnote
|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_tests
|also_articles
|also_footer
|notes
|mode
|deprecated
|cat1
|cat2
|cat3
|cat4
|cat5
|cat6
|cat7
|cat8
}}

See Template:LSL Function for syntax explanation (they are almost identical).

Event: MyEvent( integer i, float f, string s, key k, list l, vector v, rotation r ){ ; }

Event: MyEvent( integer i, float f, string s, key k, list l, vector v, rotation r ){ ; }
-1 Event ID
100.5 Delay

A fictitious Event

• integer i
• float f
• string s
• key k
• list l
• vector v
• rotation r


event_footnote

Specification

spec

constants

Caveats

caveats

Examples

examples

Useful Snippets

helpers

Notes

notes

See Also

also_header

Events

  • also_events

Functions

  • also_functions

Articles

  • also_articles

also_footer

Deep Notes

History

{{{history}}}

Tests

  • also_tests