Difference between revisions of "Template:LSL Event"

From Second Life Wiki
Jump to navigation Jump to search
m
m (partial sync of internals)
Line 78: Line 78:
|mode
|mode
|self=self
|self=self
|issues={{Issue|SVC-2|first SVC bug|type=bug}}
|issues={{Issue|SVC-1|first SVC bug|type=bug}}
}}
}}
</div>
</div>
Line 89: Line 89:
{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{ucfirst:{{#var:name}}}}}}}}}}
{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{ucfirst:{{#var:name}}}}}}}}}}
}}{{DEFAULTSORT:{{#var:sort}}}}{{#if:
}}{{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}}
|preview=LSL_Generic/preview{{#var:lang}}
|user=!{{#vardefine:moded|u{{#var:moded}}}}
|!}}|}}
{{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated{{#var:lang}}|!}}|{{{deprecated|}}}|}}
{{{inject-2|}}}
{{#vardefine:p1_name|{{{p1_name|}}}}}{{#vardefine:p1_type|{{{p1_type|}}}}}
{{#vardefine:p1_name|{{{p1_name|}}}}}{{#vardefine:p1_type|{{{p1_type|}}}}}
{{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}}
{{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}}
Line 125: Line 147:
{{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}}
{{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}}
{{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}}
{{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}}
{{{inject-3|}}}
{{#vardefine:constants_nb|{{#var:constants_nb}}{{{constants|}}}}}
{{#vardefine:constants_nb|{{#var:constants_nb}}{{{constants|}}}}}
{{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/>}}{{{spec|}}}}}
{{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/>}}{{{spec|}}}}}
{{#vardefine:examples|{{#var:examples}}{{{examples|}}}}}
{{#vardefine:examples|{{#var:examples}}{{{examples|}}}}}
{{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}}
{{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}}
{{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}}
{{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}}
{{#vardefine:also_tests|{{#var:also_tests}}
{{#vardefine:also_tests|{{#var:also_tests}}
{{{also_tests|}}}}}
{{{also_tests|}}}}}
{{#vardefine:also_events|{{#var:also_events}}
{{#vardefine:also_events|{{#var:also_events}}
{{{also_events|}}}}}
{{{also_events|}}}}}
{{#vardefine:also_functions|{{#var:also_functions}}
{{#vardefine:also_functions|{{#var:also_functions}}
{{{also_functions|}}}}}
{{{also_functions|}}}}}
{{#vardefine:also_articles|{{#var:also_articles}}
{{#vardefine:also_articles|{{#var:also_articles}}
{{{also_articles|}}}}}
{{{also_articles|}}}}}
{{#vardefine:also_library|{{#var:also_library}}
{{#vardefine:also_library|{{#var:also_library}}
{{{also_library|}}}}}
{{{also_library|}}}}}
{{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}}
{{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}}
{{#vardefine:notes|{{#var:notes}}{{{notes|}}}}}
{{#vardefine:notes|{{#var:notes}}{{{notes|}}}}}
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
{{#vardefine:self|{{#var:self}}{{{self|}}}}}
{{#vardefine:self|{{#var:self}}{{{self|}}}}}
{{#vardefine:article_type|event}}
{{#vardefine:article_type|event}}
{{#vardefine:caveats|{{#var:caveats}}
{{#vardefine:caveats|{{#var:caveats}}
{{{caveats|}}}}}
{{{caveats|}}}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
{{#vardefine:issues|{{#var:issues}}
{{{issues|}}}}}
{{#vardefine:footer|{{#var:footer}}}}
{{#vardefine:footer|{{#var:footer}}}}
{{{{#switch:{{#var:mode}}
 
|god=LSL_Generic/god{{#var:lang}}
|request=LSL_Generic/request{{#var:lang}}
|pre-release=LSL_Generic/pre-release{{#var:lang}}
|!}}|}}
{{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated{{#var:lang}}|!}}|{{{deprecated|}}}|}}
{{#vardefine:header|{{#if:{{{event_desc|}}}||
{{#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|}}}|| {{LSLC|FixMe}} }} }}
''(Please define a value for 'event_desc' to describe the events actions.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }}  
 
}}
{{#var:header}}}}
{{#var:header}}}}
}}{{#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}}
}}{{#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}}
Line 200: Line 242:
<div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
<div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
{{#var:constants}}
{{#var:constants}}
</div>}}}}{{#if:{{#var:caveats}}|
</div>}}}}
<div id="box"><h2>{{#if:{{#var:T_Caveats}}|{{#var:T_Caveats}}|Caveats}}</h2>
<div id="box"><h2>{{#if:{{#var:T_Caveats}}|{{#var:T_Caveats}}|Caveats}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:caveats}}
{{LSL Generic/Caveats}}
</div></div>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
</div></div>{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
<div id="box"><h2>{{#if:{{#var:T_Examples}}|{{#var:T_Examples}}|Examples}}</h2>
<div id="box"><h2>{{#if:{{#var:T_Examples}}|{{#var:T_Examples}}|Examples}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
Line 261: Line 303:
</div>}}{{#if:{{{issues|}}}{{#var:issues}}|
</div>}}{{#if:{{{issues|}}}{{#var:issues}}|
<h4> Issues </h4>
<h4> Issues </h4>
{{{!}}
{{LSL Generic/Issues}}
{{{issues|}}}{{#var:issues}}
{{!}}}
}}{{#if:{{#var:location}}|
}}{{#if:{{#var:location}}|
<h4> Source </h4><div>
<h4> Source </h4><div>
Line 276: Line 316:
{{{comments|}}}
{{{comments|}}}
</div></div>}}
</div></div>}}
{{#var:footer}} {{#if:{{{self|}}}|| {{#switch:{{#var:mode}}|request|user=|#default= [[Category:LSL Events{{#var:lang}}]] {{#ifexpr:({{#var:BugCounter}} + 0) > 0|[[Category:LSL topics with bugs{{#var:lang}}]]}} [[Category:LSL Events/ID{{#var:lang}}| {{padleft:{{#var:event_id}}|5|0}}]] {{#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>
{{#var:footer}} {{#if:{{{self|}}}|| {{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}|| [[Category:LSL Events{{#var:lang}}]] {{#ifexpr:({{#var:BugCounter}} + 0) > 0|[[Category:LSL topics with bugs{{#var:lang}}]]}} [[Category:LSL Events/ID{{#var:lang}}| {{padleft:{{#var:event_id}}|5|0}}]] {{#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>

Revision as of 12:31, 23 November 2010

{{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
|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