Difference between revisions of "User:Strife Onizuka/Sandbox/Switch/Template:Test5"

From Second Life Wiki
Jump to navigation Jump to search
Line 109: Line 109:
{{#vardefine:type|event}}
{{#vardefine:type|event}}
{{#vardefine:template}}
{{#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:caveats|{{#var:caveats}}{{{caveats|}}}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
{{#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}}}}}}}}}}
Line 125: Line 125:
<td>{{LSLG|Delay}}
<td>{{LSLG|Delay}}
</tr></table>}}
</tr></table>}}
{{#if:{{{event_desc|}}}||
{{#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'''
Line 135: Line 135:
{{User:Strife Onizuka/Sandbox/Template:Test2}}
{{User:Strife Onizuka/Sandbox/Template:Test2}}


{{#if:{{{self|}}}|| {{#ifeq:{{{mode|}}}|request||{{LSLC|Events|{{#var:sort}}}}}} {{#if:{{{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}}}}}} }}</includeonly>
{{#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}}}}}} }}</includeonly>

Revision as of 11:53, 20 February 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
}}

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