Difference between revisions of "Template:LSL Event"

From Second Life Wiki
Jump to navigation Jump to search
m (forgot one ^_^)
 
(57 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{LSL Header}} __NOTOC__ <noinclude>
{{Multi-lang|category=LSL}}{{LSL Header{{#var:lang}}}} __NOTOC__ <noinclude>
<pre>
<pre>
{{LSL_Event
{{LSL_Event
Line 7: Line 7:
|event_desc
|event_desc
|event_footnote
|event_footnote
|p1_type|p1_name|p1_desc
|p1_type|p1_name|p1_desc|p1_hover
|p2_type|p2_name|p2_desc
|p2_type|p2_name|p2_desc|p2_hover
|p3_type|p3_name|p3_desc
|p3_type|p3_name|p3_desc|p3_hover
|p4_type|p4_name|p4_desc
|p4_type|p4_name|p4_desc|p4_hover
|p5_type|p5_name|p5_desc
|p5_type|p5_name|p5_desc|p5_hover
|p6_type|p6_name|p6_desc
|p6_type|p6_name|p6_desc|p6_hover
|p7_type|p7_name|p7_desc
|p7_type|p7_name|p7_desc|p7_hover
|p8_type|p8_name|p8_desc
|p8_type|p8_name|p8_desc|p8_hover
|p9_type|p9_name|p9_desc
|p9_type|p9_name|p9_desc|p9_hover
|p10_type|p10_name|p10_desc
|p10_type|p10_name|p10_desc|p10_hover
|p11_type|p11_name|p11_desc
|p11_type|p11_name|p11_desc|p11_hover
|p12_type|p12_name|p12_desc
|p12_type|p12_name|p12_desc|p12_hover
|constants
|constants
|spec
|spec
Line 32: Line 32:
|mode
|mode
|deprecated
|deprecated
|location
|signature
|cat1
|cat1
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
|cat5
|cat6
|cat7
|cat8
}}
}}
</pre>
</pre>
See [[Template:LSL Function]] for syntax explanation (they are almost identical).


<div id="box">
<div id="box">
{{LSL_Event
{{{{FULLPAGENAME}}
|signature=signature
|event=MyEvent
|event=MyEvent
|event_id=-1
|event_id=-1
Line 71: Line 80:
|mode
|mode
|self=self
|self=self
|issues={{Issue/V1|SVC-1|first SVC bug|type=bug}}
}}
}}
</div>
</div>
</noinclude><includeonly>{{#if:{{{event_desc|}}}||
</noinclude><includeonly>
{{#if:
{{#if:work around changes from 1.11 to 1.12
{{{issues|}}}{{#var:issues}}
}}
{{#vardefine:name|{{{event}}}}}
{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{ucfirst:{{#var:name}}}}}}}}}}
}}{{DEFAULTSORT:{{#var:sort}}}}{{#if:
 
{{#vardefine:article_type|event}}
 
{{#vardefine:name|{{{event|}}}}}
{{#if:{{{event_id|}}}|{{#vardefine:event_id|{{{event_id|}}}}}}}
 
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
{{#vardefine:self|{{#var:self}}{{{self|}}}}}
 
{{{inject-1|}}}
 
{{{{#switch:{{#var:mode}}
|god=LSL_Generic/god{{#var:lang}}
|request=LSL_Generic/request{{#var:lang}}
|pre-release=LSL_Generic/pre-release{{#var:lang}}
|rc=LSL_Generic/RC{{#var:lang}}
|preview=LSL_Generic/preview{{#var:lang}}
|user=!{{#vardefine:moded|u{{#var:moded}}}}
|!}}|}}
{{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated{{#var:lang}}|!}}|{{{deprecated|}}}|}}
 
{{{inject-2|}}}
 
{{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}}
{{#vardefine:p_{{{p1_name|}}}_hover|{{#var:p_{{{p1_name|}}}_hover}}{{{p1_hover|}}}}}
{{#vardefine:p_{{{p2_name|}}}_desc|{{#var:p_{{{p2_name|}}}_desc}}{{{p2_desc|}}}}}
{{#vardefine:p_{{{p2_name|}}}_hover|{{#var:p_{{{p2_name|}}}_hover}}{{{p2_hover|}}}}}
{{#vardefine:p_{{{p3_name|}}}_desc|{{#var:p_{{{p3_name|}}}_desc}}{{{p3_desc|}}}}}
{{#vardefine:p_{{{p3_name|}}}_hover|{{#var:p_{{{p3_name|}}}_hover}}{{{p3_hover|}}}}}
{{#vardefine:p_{{{p4_name|}}}_desc|{{#var:p_{{{p4_name|}}}_desc}}{{{p4_desc|}}}}}
{{#vardefine:p_{{{p4_name|}}}_hover|{{#var:p_{{{p4_name|}}}_hover}}{{{p4_hover|}}}}}
{{#vardefine:p_{{{p5_name|}}}_desc|{{#var:p_{{{p5_name|}}}_desc}}{{{p5_desc|}}}}}
{{#vardefine:p_{{{p5_name|}}}_hover|{{#var:p_{{{p5_name|}}}_hover}}{{{p5_hover|}}}}}
{{#vardefine:p_{{{p6_name|}}}_desc|{{#var:p_{{{p6_name|}}}_desc}}{{{p6_desc|}}}}}
{{#vardefine:p_{{{p6_name|}}}_hover|{{#var:p_{{{p6_name|}}}_hover}}{{{p6_hover|}}}}}
{{#vardefine:p_{{{p7_name|}}}_desc|{{#var:p_{{{p7_name|}}}_desc}}{{{p7_desc|}}}}}
{{#vardefine:p_{{{p7_name|}}}_hover|{{#var:p_{{{p7_name|}}}_hover}}{{{p7_hover|}}}}}
{{#vardefine:p_{{{p8_name|}}}_desc|{{#var:p_{{{p8_name|}}}_desc}}{{{p8_desc|}}}}}
{{#vardefine:p_{{{p8_name|}}}_hover|{{#var:p_{{{p8_name|}}}_hover}}{{{p8_hover|}}}}}
{{#vardefine:p_{{{p9_name|}}}_desc|{{#var:p_{{{p9_name|}}}_desc}}{{{p9_desc|}}}}}
{{#vardefine:p_{{{p9_name|}}}_hover|{{#var:p_{{{p9_name|}}}_hover}}{{{p9_hover|}}}}}
{{#vardefine:p_{{{p10_name|}}}_desc|{{#var:p_{{{p10_name|}}}_desc}}{{{p10_desc|}}}}}
{{#vardefine:p_{{{p10_name|}}}_hover|{{#var:p_{{{p10_name|}}}_hover}}{{{p10_hover|}}}}}
{{#vardefine:p_{{{p11_name|}}}_desc|{{#var:p_{{{p11_name|}}}_desc}}{{{p11_desc|}}}}}
{{#vardefine:p_{{{p11_name|}}}_hover|{{#var:p_{{{p11_name|}}}_hover}}{{{p11_hover|}}}}}
{{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}}
{{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}}
 
{{{inject-3|}}}
 
{{#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_library|{{#var:also_library}}
{{{also_library|}}}}}
 
{{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}}
 
{{#vardefine:notes|{{#var:notes}}{{{notes|}}}}}
 
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
 
{{#vardefine:self|{{#var:self}}{{{self|}}}}}
 
{{#vardefine:article_type|event}}
 
{{#vardefine:caveats|{{#var:caveats}}
{{{caveats|}}}}}
 
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
 
{{#vardefine:issues|{{#var:issues}}
{{{issues|}}}}}
 
{{#vardefine:footer|{{#var:footer}}}}
 
{{#vardefine:header|{{#if:{{{event_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|}}}|| [[Category:LSL FixMe]] }} }}
''(Please define a value for 'event_desc' to describe the events actions.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }}
{{LSL Generic
 
|{{{event}}}|
}}
|header_floater=<table>
{{#var:header}}}}
<tr>
}}{{#if:{{#var:nofixname}}||{{#if:{{#pos:{{lc:{{FULLPAGENAMEE}}}}|{{lc:{{{event}}}}}}}|<div id="RealTitleBanner" style="display:none;"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{event}}}</span></div>}}}}{{#if:{{#var:self}}|| __NOEDITSECTION__ }}{{#var:header}}
<td>{{HoverText|{{{event_id|}}}|The event index number.}}
{{RightToc|font-size:80%}}
<td>{{LSLG|Event ID}}
<div id="box"><h2 style="display:none"> Description </h2>{{#ifexpr:({{#var:BugCounter}} + 0) > 0|<span class="mw-headline" style="display:block; color:#FF0000; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; font-size:120%; font-weight:bolder; margin:0pt; padding:0.2em 0.5em; text-align:left; float:right;">[[#Issues|<span title="There {{#ifeq:{{#var:BugCounter}}|1|is 1 bug|are {{#var:BugCounter}} bugs}} reported for this {{#var:article_type}}." style="color:#FF0000;">!</span>]]</span>}}<span id="{{anchorencode:Description}}" class="mw-headline" style="display:block; color:#546368; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; border-bottom:1px dotted #AAAAAA; font-size:120%; font-weight:bold; margin:0pt; padding:0.2em 0.5em; text-align:left;"> [[:Category:LSL_Events{{#var:lang}}|Event]]: [[{{{event}}}{{#var:lang}}|{{{event}}}]]( {{#if:{{{p1_name|}}}{{{p1_type|}}}| [[{{{p1_type|}}}{{#var:lang}}|{{{p1_type|}}}]] {{LSL Param|{{{p1_name|}}}}}{{#if:{{{p2_name|}}}{{{p2_type|}}}|, [[{{{p2_type|}}}{{#var:lang}}|{{{p2_type|}}}]] {{LSL Param|{{{p2_name|}}}}}{{#if:{{{p3_name|}}}{{{p3_type|}}}|, [[{{{p3_type|}}}{{#var:lang}}|{{{p3_type|}}}]] {{LSL Param|{{{p3_name|}}}}}{{#if:{{{p4_name|}}}{{{p4_type|}}}|, [[{{{p4_type|}}}{{#var:lang}}|{{{p4_type|}}}]] {{LSL Param|{{{p4_name|}}}}}{{#if:{{{p5_name|}}}{{{p5_type|}}}|, [[{{{p5_type|}}}{{#var:lang}}|{{{p5_type|}}}]] {{LSL Param|{{{p5_name|}}}}}{{#if:{{{p6_name|}}}{{{p6_type|}}}|, [[{{{p6_type|}}}{{#var:lang}}|{{{p6_type|}}}]] {{LSL Param|{{{p6_name|}}}}}{{#if:{{{p7_name|}}}{{{p7_type|}}}|, [[{{{p7_type|}}}{{#var:lang}}|{{{p7_type|}}}]] {{LSL Param|{{{p7_name|}}}}}{{#if:{{{p8_name|}}}{{{p8_type|}}}|, [[{{{p8_type|}}}{{#var:lang}}|{{{p8_type|}}}]] {{LSL Param|{{{p8_name|}}}}}{{#if:{{{p9_name|}}}{{{p9_type|}}}|, [[{{{p9_type|}}}{{#var:lang}}|{{{p9_type|}}}]] {{LSL Param|{{{p9_name|}}}}}{{#if:{{{p10_name|}}}{{{p10_type|}}}|, [[{{{p10_type|}}}{{#var:lang}}|{{{p10_type|}}}]] {{LSL Param|{{{p10_name|}}}}}{{#if:{{{p11_name|}}}{{{p11_type|}}}|, [[{{{p11_type|}}}{{#var:lang}}|{{{p11_type|}}}]] {{LSL Param|{{{p11_name|}}}}}{{#if:{{{p12_name|}}}{{{p12_type|}}}|, [[{{{p12_type|}}}{{#var:lang}}|{{{p12_type|}}}]] {{LSL Param|{{{p12_name|}}}}}}}}}}}}}}}}}}}}}}}}}}}}} )<nowiki>{ ; }</nowiki></span>
</tr>
<div style="padding: 0.5em; min-height: 4em;">
<tr>
<div id="box" style="float:right; margin: 0 0.5em; font-size:90%;" ><table><tr>
<td>{{HoverText|{{{event_delay|}}}|Seconds between events of this type}}
<td>{{#ifeq:{{#var:mode}}|request|REQUEST|{{HoverText|{{{event_id|}}}|The event index number.}}}}
<td>{{LSLG|Delay}}
<td>[[LSL Event ID{{#var:lang}}|Event ID]]
</tr>
</tr><tr {{#if:{{{event_delay|}}}||style="display:none;"}}>
</table>
<td>{{HoverText|{{{event_delay|}}}|Seconds between events of this type}}
|header_text={{LSL_Generic/Text
<td>[[LSL Delay{{#var:lang}}|Delay]]
|header_desc={{{event_desc|event_desc undefined}}}
</tr></table></div>
|header_footnote={{{event_footnote|}}}{{{event_footer|}}}
{{{event_desc|event_desc undefined}}}<br/>
|p1_name={{{p1_name|}}}|p1_type={{{p1_type|}}}|p1_desc={{{p1_desc|}}}
{{#if:{{{p1_name|}}}{{{p1_type|}}}|{{{!}}
|p2_name={{{p2_name|}}}|p2_type={{{p2_type|}}}|p2_desc={{{p2_desc|}}}
{{LSL DefineRow|1={{{p1_type|}}}|2={{#if:{{{p1_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p1_type|}}}}}/{{{p1_subtype|}}}{{#var:lang}}|{{{p1_name|}}}}}|{{LSL_Parameter_Link|{{{p1_name|}}}}}}}|3={{#var:p_{{{p1_name|}}}_desc}}}}
|p3_name={{{p3_name|}}}|p3_type={{{p3_type|}}}|p3_desc={{{p3_desc|}}}
{{#if:{{{p2_name|}}}{{{p2_type|}}}|{{LSL DefineRow|1={{{p2_type|}}}|2={{#if:{{{p2_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p2_type|}}}}}/{{{p2_subtype|}}}{{#var:lang}}|{{{p2_name|}}}}}|{{LSL_Parameter_Link|{{{p2_name|}}}}}}}|3={{#var:p_{{{p2_name|}}}_desc}}}}
|p4_name={{{p4_name|}}}|p4_type={{{p4_type|}}}|p4_desc={{{p4_desc|}}}
{{#if:{{{p3_name|}}}{{{p3_type|}}}|{{LSL DefineRow|1={{{p3_type|}}}|2={{#if:{{{p3_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p3_type|}}}}}/{{{p3_subtype|}}}{{#var:lang}}|{{{p3_name|}}}}}|{{LSL_Parameter_Link|{{{p3_name|}}}}}}}|3={{#var:p_{{{p3_name|}}}_desc}}}}
|p5_name={{{p5_name|}}}|p5_type={{{p5_type|}}}|p5_desc={{{p5_desc|}}}
{{#if:{{{p4_name|}}}{{{p4_type|}}}|{{LSL DefineRow|1={{{p4_type|}}}|2={{#if:{{{p4_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p4_type|}}}}}/{{{p4_subtype|}}}{{#var:lang}}|{{{p4_name|}}}}}|{{LSL_Parameter_Link|{{{p4_name|}}}}}}}|3={{#var:p_{{{p4_name|}}}_desc}}}}
|p6_name={{{p6_name|}}}|p6_type={{{p6_type|}}}|p6_desc={{{p6_desc|}}}
{{#if:{{{p5_name|}}}{{{p5_type|}}}|{{LSL DefineRow|1={{{p5_type|}}}|2={{#if:{{{p5_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p5_type|}}}}}/{{{p5_subtype|}}}{{#var:lang}}|{{{p5_name|}}}}}|{{LSL_Parameter_Link|{{{p5_name|}}}}}}}|3={{#var:p_{{{p5_name|}}}_desc}}}}
|p7_name={{{p7_name|}}}|p7_type={{{p7_type|}}}|p7_desc={{{p7_desc|}}}
{{#if:{{{p6_name|}}}{{{p6_type|}}}|{{LSL DefineRow|1={{{p6_type|}}}|2={{#if:{{{p6_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p6_type|}}}}}/{{{p6_subtype|}}}{{#var:lang}}|{{{p6_name|}}}}}|{{LSL_Parameter_Link|{{{p6_name|}}}}}}}|3={{#var:p_{{{p6_name|}}}_desc}}}}
|p8_name={{{p8_name|}}}|p8_type={{{p8_type|}}}|p8_desc={{{p8_desc|}}}
{{#if:{{{p7_name|}}}{{{p7_type|}}}|{{LSL DefineRow|1={{{p7_type|}}}|2={{#if:{{{p7_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p7_type|}}}}}/{{{p7_subtype|}}}{{#var:lang}}|{{{p7_name|}}}}}|{{LSL_Parameter_Link|{{{p7_name|}}}}}}}|3={{#var:p_{{{p7_name|}}}_desc}}}}
|p9_name={{{p9_name|}}}|p9_type={{{p9_type|}}}|p9_desc={{{p9_desc|}}}
{{#if:{{{p8_name|}}}{{{p8_type|}}}|{{LSL DefineRow|1={{{p8_type|}}}|2={{#if:{{{p8_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p8_type|}}}}}/{{{p8_subtype|}}}{{#var:lang}}|{{{p8_name|}}}}}|{{LSL_Parameter_Link|{{{p8_name|}}}}}}}|3={{#var:p_{{{p8_name|}}}_desc}}}}
|p10_name={{{p10_name|}}}|p10_type={{{p10_type|}}}|p10_desc={{{p10_desc|}}}
{{#if:{{{p9_name|}}}{{{p9_type|}}}|{{LSL DefineRow|1={{{p9_type|}}}|2={{#if:{{{p9_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p9_type|}}}}}/{{{p9_subtype|}}}{{#var:lang}}|{{{p9_name|}}}}}|{{LSL_Parameter_Link|{{{p9_name|}}}}}}}|3={{#var:p_{{{p9_name|}}}_desc}}}}
|p11_name={{{p11_name|}}}|p11_type={{{p11_type|}}}|p11_desc={{{p11_desc|}}}
{{#if:{{{p10_name|}}}{{{p10_type|}}}|{{LSL DefineRow|1={{{p10_type|}}}|2={{#if:{{{p10_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p10_type|}}}}}/{{{p10_subtype|}}}{{#var:lang}}|{{{p10_name|}}}}}|{{LSL_Parameter_Link|{{{p10_name|}}}}}}}|3={{#var:p_{{{p10_name|}}}_desc}}}}
|p12_name={{{p12_name|}}}|p12_type={{{p12_type|}}}|p12_desc={{{p12_desc|}}}}}
{{#if:{{{p11_name|}}}{{{p11_type|}}}|{{LSL DefineRow|1={{{p11_type|}}}|2={{#if:{{{p11_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p11_type|}}}}}/{{{p11_subtype|}}}{{#var:lang}}|{{{p11_name|}}}}}|{{LSL_Parameter_Link|{{{p11_name|}}}}}}}|3={{#var:p_{{{p11_name|}}}_desc}}}}
|header_title={{LSL_Generic/Title
{{#if:{{{p12_name|}}}{{{p12_type|}}}|{{LSL DefineRow|1={{{p12_type|}}}|2={{#if:{{{p12_subtype|}}}|{{CAL|LSL {{ucfirst:{{{p12_type|}}}}}/{{{p12_subtype|}}}{{#var:lang}}|{{{p12_name|}}}}}|{{LSL_Parameter_Link|{{{p12_name|}}}}}}}|3={{#var:p_{{{p12_name|}}}_desc}}}}
|name={{{event}}}
}}}}}}}}}}}}}}}}}}}}}}
|template=LSLG
{{!}}}
|p1_name={{{p1_name|}}}|p1_type={{{p1_type|}}}
}}
|p2_name={{{p2_name|}}}|p2_type={{{p2_type|}}}
{{#if:{{{event_footnote|}}}{{{event_footer|}}}|{{{event_footnote|}}}{{{event_footer|}}}}}
|p3_name={{{p3_name|}}}|p3_type={{{p3_type|}}}
</div></div>
|p4_name={{{p4_name|}}}|p4_type={{{p4_type|}}}
{{#if:{{#var:spec}}|
|p5_name={{{p5_name|}}}|p5_type={{{p5_type|}}}
<div id="box">
|p6_name={{{p6_name|}}}|p6_type={{{p6_type|}}}
<h2>{{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}}</h2>
|p7_name={{{p7_name|}}}|p7_type={{{p7_type|}}}
<div style="padding: 0.5em">
|p8_name={{{p8_name|}}}|p8_type={{{p8_type|}}}
{{#var:spec}}
|p9_name={{{p9_name|}}}|p9_type={{{p9_type|}}}
</div></div>}}{{#if:{{#var:constants_nb}}{{#var:constants}}|
|p10_name={{{p10_name|}}}|p10_type={{{p10_type|}}}
{{#var:constants_nb}}{{#if:{{#var:constants}}|
|p11_name={{{p11_name|}}}|p11_type={{{p11_type|}}}
<div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
|p12_name={{{p12_name|}}}|p12_type={{{p12_type|}}}}}
{{#var:constants}}
|deprecated={{{deprecated|}}}
</div>}}}}
|constants={{{constants|}}}
<div id="box"><h2>{{#if:{{#var:T_Caveats}}|{{#var:T_Caveats}}|Caveats}}</h2>
|spec={{{spec|}}}
<div style="padding: 0.5em">
|caveats={{{caveats|}}}
{{LSL Generic/Caveats|keywords=event AND }}
|examples={{{examples|}}}
</div></div>{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
|helpers={{{helpers|}}}
<div id="box"><h2>{{#if:{{#var:T_Examples}}|{{#var:T_Examples}}|Examples}}</h2>
|also_header={{{also_header|}}}
<div style="padding: 0.5em">
|also_events={{{also_events|}}}
{{#var:examples}}
|also_functions={{{also_functions|}}}
</div></div>}}{{#if:{{#var:helpers}}|
|also_tests={{{also_tests|}}}
<div id="box"><h2>{{#if:{{#var:T_Useful_Snippets}}|{{#var:T_Useful_Snippets}}|Useful Snippets}}</h2>
|also_articles={{{also_articles|}}}
<div style="padding: 0.5em">
|also_footer={{{also_footer|}}}
{{#var:helpers}}
|notes={{{notes|}}}
</div></div>}}{{#if:{{#var:notes}}|
|mode={{{mode|}}}
<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
|self={{{self|}}}
<div style="padding: 0.5em">
|type=event
{{#var:notes}}
|template=LSLG
</div></div>}}{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}{{#var:also_library}}|<div id="box">
|footer={{#if: {{{no_footer|}}}||:<div style="font-size:x-small;">This page is based on information gathered from the Second Life client {{HoverText|source|'linden\indra\newview\app_settings\keywords.ini'}}, and as such has additional [http://secondlife.com/developers/opensource/licenses licensing restrictions].</div>}}
<h2>See Also</h2>
}}{{#if:{{{self|}}}|| {{#ifeq:{{{mode|}}}|request||{{LSLC|Events|{{{event|}}}}}}} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}|{{{event|}}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}|{{{event|}}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}|{{{event|}}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}|{{{event|}}}}}}}}}</includeonly>
<div style="padding: 0.5em;">
{{#if:{{#var:also_header}}|<div>
{{#var:also_header}}
</div>}}{{#if:{{#var:also_events}}|
<h3>Events</h3>
{{{!}}
{{#var:also_events}}
{{!}}} }}{{#if:{{#var:also_functions}}|
<h3>Functions</h3>
{{{!}}
{{#var:also_functions}}
{{!}}} }}{{#if:{{#var:also_tests}}|
<h3>Tests</h3>
{{{!}}
{{#var:also_tests}}
{{!}}} }}{{#if:{{#var:also_articles}}|
<h3>Articles</h3>
{{{!}}
{{#var:also_articles}}
{{!}}} }}{{#if:{{#var:also_library}}|
<h3>Library and Examples</h3>
{{{!}}
{{#var:also_library}}
{{!}}} }}
{{#if:{{#var:also_footer}}|<div style="margin-top:0.5em;">
{{#var:also_footer}}
</div>}}
</div></div>}}
<div id="box">
== Deep Notes ==
<div style="padding: 0.5em"><div>
{{{deepnotes|}}}{{#var:deepnotes}}
</div>{{#if:{{{mono|}}}{{#var:mono}}|
<h4> Mono VM Notes </h4><div>
{{{mono|}}}{{#var:mono}}
</div>}}{{#if:{{{lso|}}}{{#var:lso}}|
<h4> LSO VM Notes </h4><div>
{{{lso|}}}{{#var:lso}}
</div>}}{{#if:{{{history|}}}{{#var:history}}|
<h4> History </h4><div>
{{{history|}}}{{#var:history}}
</div>}}{{#if:{{#var:issues}}|
<h4> Issues </h4>
{{LSL Generic/Issues|keywords=event AND }}
}}{{#if:{{#var:location}}|
<h4> Source </h4><div>
{{#var:location}}
</div>}}{{#if:{{#var:footnotes}}|
<h4 style="margin-bottom:0;"> Footnotes </h4>
{{{{#if:{{#var:footnotes}}|Footnotes|!}}|}}
}}
{{Collapsible_Table|collapsed=*|table-style=width:100%;|title-style=text-align:left;|title=<h4 style="margin-top:0;">Signature</h4>|content={{!}}
{{#tag:pre|{{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||event void {{{event}}}( {{#if:{{{p1_name|}}}{{{p1_type|}}}| {{{p1_type|}}} {{{p1_name|}}}{{#if:{{{p2_name|}}}{{{p2_type|}}}|, {{{p2_type|}}} {{{p2_name|}}}{{#if:{{{p3_name|}}}{{{p3_type|}}}|, {{{p3_type|}}} {{{p3_name|}}}{{#if:{{{p4_name|}}}{{{p4_type|}}}|, {{{p4_type|}}} {{{p4_name|}}}{{#if:{{{p5_name|}}}{{{p5_type|}}}|, {{{p5_type|}}} {{{p5_name|}}}{{#if:{{{p6_name|}}}{{{p6_type|}}}|, {{{p6_type|}}} {{{p6_name|}}}{{#if:{{{p7_name|}}}{{{p7_type|}}}|, {{{p7_type|}}} {{{p7_name|}}}{{#if:{{{p8_name|}}}{{{p8_type|}}}|, {{{p8_type|}}} {{{p8_name|}}}{{#if:{{{p9_name|}}}{{{p9_type|}}}|, {{{p9_type|}}} {{{p9_name|}}}{{#if:{{{p10_name|}}}{{{p10_type|}}}|, {{{p10_type|}}} {{{p10_name|}}}{{#if:{{{p11_name|}}}{{{p11_type|}}}|, {{{p11_type|}}} {{{p11_name|}}}{{#if:{{{p12_name|}}}{{{p12_type|}}}|, {{{p12_type|}}} {{{p12_name|}}}}}}}}}}}}}}}}}}}}}}}}}}} )<nowiki>;</nowiki>{{#if:{{{desc|}}}|//{{{desc|}}}}}
}}{{#if:{{{signature|}}}|{{{signature|}}}
}}{{#if:{{#var:signature}}|{{#var:signature}}
}}|id="lsl-signature"}}}}
{{#if:{{{haiku|}}}|{{Collapsible_Table|table-class=haiku|table-style=width:100%;|title-style=text-align:left;|title=<h4 style="margin-top:0;">Haiku</h4>|content={{!}}
{{{haiku}}}
}}}}
</div></div>{{#if:{{{comments|}}}|<div id="box">
<h2>Comments</h2>
<div style="padding: 0.5em;">
{{{comments|}}}
</div></div>}}
{{#var:footer}} {{#if:{{{self|}}}|| {{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}|| [[Category:LSL Events{{#var:lang}}]] {{#if:{{#pos:{{#var:moded}}|f}}|[[Category:LSL Keywords/Pre-release{{#var:lang}}]]|[[Category:LSL Keywords/All{{#var:lang}}]]{{#ifexpr:({{#var:BugCounter}} + 0) > 0|[[Category:LSL topics with bugs{{#var:lang}}]]}}}} {{#if:{{#var:event_id}}|[[Category:LSL Events/ID{{#var:lang}}| {{padleft:{{#var:event_id}}|5|0}}]]|[[Category:LSL Events/ID{{#var:lang}}|?{{#var:name}}]]}} {{#if:{{#var:examples}}||[[Category:LSL Needs Example{{#var:lang}}]]}} {{LSL Unhelpful|{{{event}}}|}} }} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}{{#var:lang}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}{{#var:lang}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}{{#var:lang}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}{{#var:lang}}}}}} {{#if:{{{cat5|}}}|{{LSLC|{{{cat5}}}{{#var:lang}}}}}} {{#if:{{{cat6|}}}|{{LSLC|{{{cat6}}}{{#var:lang}}}}}} {{#if:{{{cat7|}}}|{{LSLC|{{{cat7}}}{{#var:lang}}}}}} {{#if:{{{cat8|}}}|{{LSLC|{{{cat8}}}{{#var:lang}}}}}} }}</includeonly>

Latest revision as of 08:02, 1 April 2014

{{LSL_Event
|event
|event_id
|event_delay
|event_desc
|event_footnote
|p1_type|p1_name|p1_desc|p1_hover
|p2_type|p2_name|p2_desc|p2_hover
|p3_type|p3_name|p3_desc|p3_hover
|p4_type|p4_name|p4_desc|p4_hover
|p5_type|p5_name|p5_desc|p5_hover
|p6_type|p6_name|p6_desc|p6_hover
|p7_type|p7_name|p7_desc|p7_hover
|p8_type|p8_name|p8_desc|p8_hover
|p9_type|p9_name|p9_desc|p9_hover
|p10_type|p10_name|p10_desc|p10_hover
|p11_type|p11_name|p11_desc|p11_hover
|p12_type|p12_name|p12_desc|p12_hover
|constants
|spec
|caveats
|examples
|helpers
|also_header
|also_functions
|also_tests
|also_articles
|also_footer
|notes
|mode
|deprecated
|location
|signature
|cat1
|cat2
|cat3
|cat4
|cat5
|cat6
|cat7
|cat8
}}

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

Description

! 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

Tests

  • also_tests

Articles

  • also_articles

also_footer

Deep Notes

Issues

All Issues

~ Search JIRA for related Issues
   first SVC bug

Signature

event void MyEvent( integer i, float f, string s, key k, list l, vector v, rotation r );signature