Difference between revisions of "Template:LSL Event"

From Second Life Wiki
Jump to navigation Jump to search
(Getting ready for the big update)
Line 1: Line 1:
{{LSL Header}} __NOTOC__ <noinclude>
<pre>
{{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
}}
</pre>


See [[Template:LSL Function]] for syntax explanation (they are almost identical).
<div id="box">
{{LSL_Event
|event=MyEvent
|event_id=-1
|event_delay=100.5
|event_desc=A fictitious Event
|event_footnote=event_footnote
|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_tests=
*also_tests
|also_articles=
*also_articles
|also_footer=also_footer
|notes=notes
|mode
|self=self
}}
</div>
</noinclude><includeonly>{{#if:{{{event_desc|}}}||
<div id="box" style="background:yellow;">
&nbsp;&nbsp;''' 'event_desc' can not be undefined'''
<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]] }} }}
{{LSL Generic
|{{{event}}}|
|header_floater=<table>
<tr>
<td>{{HoverText|{{{event_id|}}}|The event index number.}}
<td>{{LSLG|Event ID}}
</tr>
<tr>
<td>{{HoverText|{{{event_delay|}}}|Seconds between events of this type}}
<td>{{LSLG|Delay}}
</tr>
</table>
|header_text={{LSL_Generic/Text
|header_desc={{{event_desc|event_desc undefined}}}
|header_footnote={{{event_footnote|}}}{{{event_footer|}}}
|p1_name={{{p1_name|}}}|p1_type={{{p1_type|}}}|p1_desc={{{p1_desc|}}}
|p2_name={{{p2_name|}}}|p2_type={{{p2_type|}}}|p2_desc={{{p2_desc|}}}
|p3_name={{{p3_name|}}}|p3_type={{{p3_type|}}}|p3_desc={{{p3_desc|}}}
|p4_name={{{p4_name|}}}|p4_type={{{p4_type|}}}|p4_desc={{{p4_desc|}}}
|p5_name={{{p5_name|}}}|p5_type={{{p5_type|}}}|p5_desc={{{p5_desc|}}}
|p6_name={{{p6_name|}}}|p6_type={{{p6_type|}}}|p6_desc={{{p6_desc|}}}
|p7_name={{{p7_name|}}}|p7_type={{{p7_type|}}}|p7_desc={{{p7_desc|}}}
|p8_name={{{p8_name|}}}|p8_type={{{p8_type|}}}|p8_desc={{{p8_desc|}}}
|p9_name={{{p9_name|}}}|p9_type={{{p9_type|}}}|p9_desc={{{p9_desc|}}}
|p10_name={{{p10_name|}}}|p10_type={{{p10_type|}}}|p10_desc={{{p10_desc|}}}
|p11_name={{{p11_name|}}}|p11_type={{{p11_type|}}}|p11_desc={{{p11_desc|}}}
|p12_name={{{p12_name|}}}|p12_type={{{p12_type|}}}|p12_desc={{{p12_desc|}}}}}
|header_title=Event: {{LSL_Generic/Title
|name={{{event}}}
|template=LSLG
|return_end={ ; }
|p1_name={{{p1_name|}}}|p1_type={{{p1_type|}}}
|p2_name={{{p2_name|}}}|p2_type={{{p2_type|}}}
|p3_name={{{p3_name|}}}|p3_type={{{p3_type|}}}
|p4_name={{{p4_name|}}}|p4_type={{{p4_type|}}}
|p5_name={{{p5_name|}}}|p5_type={{{p5_type|}}}
|p6_name={{{p6_name|}}}|p6_type={{{p6_type|}}}
|p7_name={{{p7_name|}}}|p7_type={{{p7_type|}}}
|p8_name={{{p8_name|}}}|p8_type={{{p8_type|}}}
|p9_name={{{p9_name|}}}|p9_type={{{p9_type|}}}
|p10_name={{{p10_name|}}}|p10_type={{{p10_type|}}}
|p11_name={{{p11_name|}}}|p11_type={{{p11_type|}}}
|p12_name={{{p12_name|}}}|p12_type={{{p12_type|}}}}}
|deprecated={{{deprecated|}}}
|constants={{{constants|}}}
|spec={{{spec|}}}
|caveats={{{caveats|}}}
|examples={{{examples|}}}
|helpers={{{helpers|}}}
|also_header={{{also_header|}}}
|also_events={{{also_events|}}}
|also_functions={{{also_functions|}}}
|also_tests={{{also_tests|}}}
|also_articles={{{also_articles|}}}
|also_footer={{{also_footer|}}}
|notes={{{notes|}}}
|mode={{{mode|}}}
|self={{{self|}}}
|type=event
|template=LSLG
|sort={{ucfirst:{{{event|}}}}}
|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>}}
}}{{#if:{{{self|}}}|| {{#ifeq:{{{mode|}}}|request||{{LSLC|Events|{{ucfirst:{{{event|}}}}}}}}} {{#if:{{{examples|}}}||{{LSLC|Needs Example|{{ucfirst:{{{event|}}}}}}}}} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}|{{ucfirst:{{{event|}}}}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}|{{ucfirst:{{{event|}}}}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}|{{ucfirst:{{{event|}}}}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}|{{ucfirst:{{{event|}}}}}}}}} {{#if:{{{cat5|}}}|{{LSLC|{{{cat5}}}|{{ucfirst:{{{event|}}}}}}}}} {{#if:{{{cat6|}}}|{{LSLC|{{{cat6}}}|{{ucfirst:{{{event|}}}}}}}}} }}</includeonly>

Revision as of 12:32, 20 February 2007