Difference between revisions of "Template:LSL Conditional"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 76: Line 76:
{{#var:header_text}}
{{#var:header_text}}
</div></div>
</div></div>
{{#var:extras}}{{{extras|}}}
{{#var:extras}}{{{extras|}}}<div id="box">
<div id="box">
<h2>{{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}}</h2>
<h2>{{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{LSL_Constants_Conditional}}
{{LSL_Constants_Conditional}}
{{#var:spec}}{{{spec|}}}<br style="clear:left;">
{{#var:spec}}{{{spec|}}}<br style="clear:left;">
</div></div>
</div></div>{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}{{{examples|}}}|
{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}{{{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">
{{#var:examples}}{{{examples|}}}
{{#var:examples}}{{{examples|}}}
</div></div>}}
</div></div>}}{{#if:{{#var:notes}}{{{notes|}}}|
{{#if:{{#var:notes}}{{{notes|}}}|
<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:notes}}{{{notes|}}}
{{#var:notes}}{{{notes|}}}
<br style="clear:left;"></div></div>}}
<br style="clear:left;"></div></div>}}{{#if:{{#var:helpers}}{{{helpers|}}}|
{{#if:{{#var:helpers}}{{{helpers|}}}|
<div id="box"><h2>{{#if:{{#var:T_Useful_Snippets}}|{{#var:T_Useful_Snippets}}|Useful Snippets}}</h2>
<div id="box"><h2>{{#if:{{#var:T_Useful_Snippets}}|{{#var:T_Useful_Snippets}}|Useful Snippets}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:helpers}}{{{helpers|}}}
{{#var:helpers}}{{{helpers|}}}
</div></div>}}
</div></div>}}{{#if:{{#var:also_footer}}{{{also_footer|}}}{{#var:also_functions}}{{{also_functions|}}}{{#var:also_events}}{{{also_events|}}}{{#var:also_articles}}{{{also_articles|}}}{{#var:also_tests}}{{{also_tests|}}}{{#var:also_header}}{{{also_header|}}}|
{{#if:{{#var:also_footer}}{{{also_footer|}}}{{#var:also_functions}}{{{also_functions|}}}{{#var:also_events}}{{{also_events|}}}{{#var:also_articles}}{{{also_articles|}}}{{#var:also_tests}}{{{also_tests|}}}{{#var:also_header}}{{{also_header|}}}|
<div id="box"><h2>{{#if:{{#var:T_See_Also}}|{{#var:T_See Also}}|See Also}}</h2>
<div id="box"><h2>{{#if:{{#var:T_See_Also}}|{{#var:T_See Also}}|See Also}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
Line 124: Line 119:
{{!}}} }}
{{!}}} }}
{{#if:{{#var:also_footer}}{{{also_footer|}}}|<br/>{{#var:also_footer}}{{{also_footer|}}}}}
{{#if:{{#var:also_footer}}{{{also_footer|}}}|<br/>{{#var:also_footer}}{{{also_footer|}}}}}
</div></div>}}
</div></div>}}{{#if:{{#var:location}}{{{location|}}}|
{{#if:{{#var:location}}{{{location|}}}|
<div id="box">
<div id="box">
<h2>{{#if:{{#var:T_Source_Location}}|{{#var:T_Source_Location}}|Source Location}}</h2>
<h2>{{#if:{{#var:T_Source_Location}}|{{#var:T_Source_Location}}|Source Location}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:location}}{{{location|}}}
{{#var:location}}{{{location|}}}
</div></div>}}
</div></div>}}{{#var:footer}}<span id="sort" style="visibility:hidden">{{#var:sort}}</span>{{#if:{{{self|}}}|| {{#ifeq:{{#var:mode}}|request||{{LSLC|Flow Control|{{#var:sort}}}}}} {{#if:{{#var:examples}}{{{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>
{{#var:footer}}<span id="sort" style="visibility:hidden">{{#var:sort}}</span>{{#if:{{{self|}}}|| {{#ifeq:{{#var:mode}}|request||{{LSLC|Flow Control|{{#var:sort}}}}}} {{#if:{{#var:examples}}{{{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 02:46, 30 December 2007

{{LSL_Conditional
|statement
|statement_header
|statement_desc
|statement_end
|statement_end_desc
|p1_name|p1_desc
|p2_name|p2_desc
|p3_name|p3_desc
|p4_name|p4_desc
|p5_name|p5_desc
|p6_name|p6_desc
|p7_name|p7_desc
|p8_name|p8_desc
|p9_name|p9_desc
|p10_name|p10_desc
|p11_name|p11_desc
|p12_name|p12_desc
|constants
|examples
|helpers
|also_header
|also_functions
|also_tests
|also_articles
|also_footer
|notes
|mode
|deprecated
|cat1
|cat2
|cat3
|cat4
}}

funckyloop( i; f; s; k; l; v; rstatement_end

statement_type

•  i i
•  f f
•  s s
•  k k
•  l l
•  v v
•  r r
•  statement_end statement_end_desc


A fictitious statement type

Specification

Conditional Types
Type Condition
integer True if it is not zero.
float True if it is not zero.
string True if its length is not zero.
key True only if it is a valid key and not NULL_KEY.
vector True if the vector is not ZERO_VECTOR.
rotation True if the rotation is not ZERO_ROTATION.
list True if the length is not zero.

spec

Examples

examples

Notes

notes


Useful Snippets

helpers

See Also

also_header

Events

  • also_events

Functions

  • also_functions

Tests

  • also_tests

Articles

  • also_articles


also_footer