Difference between revisions of "Template:LSL Conditional"

From Second Life Wiki
Jump to navigation Jump to search
Line 72: Line 72:
}}
}}
</div>
</div>
</noinclude><includeonly>{{LSL Generic
</noinclude><includeonly>
|{{{statement}}}|
{{#vardefine:pe_name={{{statement_end|}}}}}{{#vardefine:pe_desc={{{statement_end_desc|}}}}}
|header_floater
{{#vardefine:p1_name|{{{p1_name|}}}}}{{#vardefine:p1_desc|{{{p1_desc|}}}}}
|header_text={{LSL_Generic/Text
{{#vardefine:p2_name|{{{p2_name|}}}}}{{#vardefine:p2_desc|{{{p2_desc|}}}}}
|header_desc={{{statement_type|}}}
{{#vardefine:p3_name|{{{p3_name|}}}}}{{#vardefine:p3_desc|{{{p3_desc|}}}}}
|header_footnote={{{statement_desc|}}}
{{#vardefine:p4_name|{{{p4_name|}}}}}{{#vardefine:p4_desc|{{{p4_desc|}}}}}
|pe_name={{{statement_end|}}}|pe_desc={{{statement_end_desc|}}}
{{#vardefine:p5_name|{{{p5_name|}}}}}{{#vardefine:p5_desc|{{{p5_desc|}}}}}
|p1_name={{{p1_name|}}}|p1_desc={{{p1_desc|}}}
{{#vardefine:p6_name|{{{p6_name|}}}}}{{#vardefine:p6_desc|{{{p6_desc|}}}}}
|p2_name={{{p2_name|}}}|p2_desc={{{p2_desc|}}}
{{#vardefine:p7_name|{{{p7_name|}}}}}{{#vardefine:p7_desc|{{{p7_desc|}}}}}
|p3_name={{{p3_name|}}}|p3_desc={{{p3_desc|}}}
{{#vardefine:p8_name|{{{p8_name|}}}}}{{#vardefine:p8_desc|{{{p8_desc|}}}}}
|p4_name={{{p4_name|}}}|p4_desc={{{p4_desc|}}}
{{#vardefine:p9_name|{{{p9_name|}}}}}{{#vardefine:p9_desc|{{{p9_desc|}}}}}
|p5_name={{{p5_name|}}}|p5_desc={{{p5_desc|}}}
{{#vardefine:p10_name|{{{p10_name|}}}}}{{#vardefine:p10_desc|{{{p10_desc|}}}}}
|p6_name={{{p6_name|}}}|p6_desc={{{p6_desc|}}}
{{#vardefine:p11_name|{{{p11_name|}}}}}{{#vardefine:p11_desc|{{{p11_desc|}}}}}
|p7_name={{{p7_name|}}}|p7_desc={{{p7_desc|}}}
{{#vardefine:p12_name|{{{p12_name|}}}}}{{#vardefine:p12_desc|{{{p12_desc|}}}}}
|p8_name={{{p8_name|}}}|p8_desc={{{p8_desc|}}}
{{#vardefine:return_end|<nowiki>;</nowiki>}}
|p9_name={{{p9_name|}}}|p9_desc={{{p9_desc|}}}
{{#vardefine:template}}
|p10_name={{{p10_name|}}}|p10_desc={{{p10_desc|}}}
{{#vardefine:name|{{{statement}}}}}
|p11_name={{{p11_name|}}}|p11_desc={{{p11_desc|}}}
{{#if:{{{deprecated|}}}{{{depreciated|}}}|{{LSL_Generic/deprecated|{{{deprecated|}}}{{{depreciated|}}}}}}}
|p12_name={{{p12_name|}}}|p12_desc={{{p12_desc|}}}}}
{{#vardefine:constants|{{LSL Constants Conditional}}}}
|header_title={{#if:{{{statement_title|}}}|{{{statement_title|}}}|{{LSL_Generic/Title
{{#vardefine:spec|{{#var:spec}}{{{spec|}}}}}
|name={{{statement}}}
{{#vardefine:examples|{{#var:examples}}{{{examples|}}}}}
|template=none
{{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}}
|separator=<nowiki>;</nowiki>|
{{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}}
|return_end=&nbsp;{{{statement_end|}}}
{{#vardefine:also_tests|{{#var:also_tests}}{{{also_tests|}}}}}
|p1_name={{{p1_name|}}}|p2_name={{{p2_name|}}}
{{#vardefine:also_events|{{#var:also_events}}{{{also_events|}}}}}
|p3_name={{{p3_name|}}}|p4_name={{{p4_name|}}}
{{#vardefine:also_functions|{{#var:also_functions}}{{{also_functions|}}}}}
|p5_name={{{p5_name|}}}|p6_name={{{p6_name|}}}
{{#vardefine:also_articles|{{#var:also_articles}}{{{also_articles|}}}}}
|p7_name={{{p7_name|}}}|p8_name={{{p8_name|}}}
{{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}}
|p9_name={{{p9_name|}}}|p10_name={{{p10_name|}}}
{{#vardefine:notes|{{#var:notes}}{{{notes|}}}}}
|p11_name={{{p11_name|}}}|p12_name={{{p12_name|}}}}}}}
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
|deprecated={{{deprecated|}}}
{{#vardefine:self|{{#var:self}}{{{self|}}}}}
|constants_nb={{LSL Constants Conditional}}
{{#vardefine:type|flow control}}
|spec={{{spec|}}}
{{#vardefine:template|none}}
|caveats={{{caveats|}}}
{{#vardefine:caveats|{{#var:caveats}}{{{caveats|}}}}}
|examples={{{examples|}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
|helpers={{{helpers|}}}
{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{ucfirst:{{#var:name}}}}}}}}}}
|also_header={{{also_header|}}}
{{#vardefine:footer|{{#var:footer}}}}
|also_events={{{also_events|}}}
{{#vardefine:return_end|<nowiki>;</nowiki>}}
|also_functions={{{also_functions|}}}
{{#vardefine:header_footnote|{{{statement_desc|}}}}}
|also_tests={{{also_tests|}}}
{{#vardefine:header_desc|{{{statement_type|}}}}}
|also_articles={{{also_articles|}}}
{{#ifeq:{{#var:mode}}|god|{{LSL_Generic/god}}}}
|also_footer={{{also_footer|}}}
{{#ifeq:{{#var:mode}}|request|{{LSL_Generic/request}}}}
|notes={{{notes|}}}
{{#vardefine:header_floater}}
|mode={{{mode|}}}
{{#if:{{#var:header_desc}}||
|self={{{self|}}}
<div id="box" style="background:yellow;">
|type=event
&nbsp;&nbsp;''' 'event_desc' can not be undefined'''
|template=LSLG
<div style="padding: 0.5em;background:#ffffff;">
|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>}}
''(Please define a value for 'event_desc' to describe the events actions.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|FixMe}} }} }}
}}{{#if:{{{self|}}}|| {{#ifeq:{{{mode|}}}|request||{{LSLC|Flow Control|{{{statement|}}}}}}} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}|{{{statement|}}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}|{{{statement|}}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}|{{{statement|}}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}|{{{statement|}}}}}}}}} </includeonly>
 
{{#vardefine:separator|<nowiki>;</nowiki>}}
 
{{#vardefine:header_text|{{User:Strife Onizuka/Sandbox/Template:Test3}}}}
{{#vardefine:header_title|{{#if:{{{statement_title|}}}|{{{statement_title|}}}|{{LSL_Generic/Title}}}}}}
{{User:Strife Onizuka/Sandbox/Template:Test2}}
 
{{#if:{{{self|}}}|| {{#ifeq:{{#var:mode}}|request||{{LSLC|Flow Control|{{#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 12:14, 20 February 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
|spec
|caveats
|examples
|helpers
|also_header
|also_functions
|also_tests
|also_articles
|also_footer
|notes
|mode
|deprecated
|cat1
|cat2
|cat3
|cat4
}}