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

From Second Life Wiki
Jump to navigation Jump to search
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__ <noinclude>
<includeonly>{{#if:
 
{{#vardefine:const_called|{{#expr:{{#var:const_called}} + 1}}}}
</noinclude><includeonly>{{#vardefine:also_tests|{{#ifexist:{{PAGENAME}}/test|*{{LSLG|{{#var:name}}/test|{{#var:name}} conformance script}}
{{{{#ifexpr:{{#var:const_called}} = 1|:{{{1}}}|!}}|}}
{{#var:also_tests}}}}}}{{#if:{{#var:self}}|| __NOEDITSECTION__ }}  <!-- {{lowercase|{{PAGENAME}}}} --> {| width="100%"
{{#vardefine:define|{{#ifexpr:{{#var:const_called}} = 1|define|}}}}
|-
{{#var{{#var:define}}:cvalue|{{#if:{{#var:cvalue}}|{{#var:cvalue}}|{{#if:{{#var:value}}|{{#var:value}}|{{#if:{{{hex|}}}|{{{{#if:{{{hex|}}}|LSL Hex/Parse|!}}|{{{hex|}}}}}|{{{3|}}}}}}}}}}}
| valign="top" | <div id="box">
{{#var{{#var:define}}:hvalue|{{#if:{{#var:hvalue}}|{{#var:hvalue}}|{{{hex|}}}}}}}
== {{#var:header_title}} ==
{{#var{{#var:define}}:type|{{#if:{{#var:type}}|{{#var:type}}|{{{2|}}}}}}}
<div style="padding: 0.5em">{{#if:{{#var:header_floater}}|<div id="box" style="float:right;">{{#var:header_floater}}</div>}}
{{#vardefine:const_called|{{#expr:{{#var:const_called}} - 1}}}}
{{#var:header_text}}
}}{{HoverLink|1={{{1}}}|2={{#var:type}} {{{1}}}{{#if:{{#var:hvalue}}|&#32;{{=}} {{#var:hvalue}}}}{{#if:{{#var:cvalue}}|&#32;{{=}} {{#var:cvalue}}}};{{#if:{{#var:comment}}|&#47;&#47;{{#var:comment}}}}|3={{#if:{{{4|}}}|{{{4|{{{1}}}}}}|{{{1}}}}}}}</includeonly><noinclude>
{{#if:{{#var:header_floater}}|<div style="clear:right;" ></div>}}
{{{{FULLPAGENAMEE}}|DEBUG_CHANNEL|some_type|some_value}}</noinclude>
</div></div>
|-
|{{ #if: {{#var:spec}} |  
<div id="box">
== Specification ==
<div style="padding: 0.5em">
{{#var:spec}}
</div></div>
}}
|-
|{{ #if: {{#var:constants_nb}} | {{#var:constants_nb}}| }}{{ #if: {{#var:constants}} |  
<div id="box">
== Constants ==
{{#var:constants}}
</div>
}}
|-
|<div id="box">
== Caveats ==
<div style="padding: 0.5em">
{{#var:caveats}}
</div></div>
|-
|{{ #if: {{#if:{{#var:deprecated}}||t}}{{#var:examples}} |
<div id="box">
== Examples ==
<div style="padding: 0.5em">
{{ #if: {{#var:examples}} | {{#var:examples}} | }}
</div>
</div>
}}
|-
|{{ #if: {{#var:helpers}} |
<div id="box">
== Useful Snippets ==
<div style="padding: 0.5em">
{{#var:helpers}}
</div>
</div>
}}
|-
|{{ #if: {{#if:{{#var:deprecated}}||t}}{{#var:notes}} |
<div id="box">
== Notes ==
<div style="padding: 0.5em">
{{ #if: {{#var:notes}} | {{#var:notes}} }}
</div>
</div>
}}
|-
|{{ #if: {{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}|  
<div id="box">
== See Also ==
<div style="padding: 0.5em">
{{ #if: {{#var:also_header}} | {{#var:also_header}}<br /> |}}{{ #if: {{#var:also_events}} |
<ul><li> Events </li></ul>
<dl><dd>
{{#var:also_events}}</dl> | }}{{ #if: {{#var:also_functions}} |
<ul><li> Functions </li></ul>
<dl><dd>
{{#var:also_functions}}</dl> | }}{{ #if: {{#var:also_tests}} |
<ul><li> Tests </li></ul>
<dl><dd>
{{#var:also_tests}}</dl> | }}{{ #if: {{#var:also_articles}} |
<ul><li> Articles </li></ul>
<dl><dd>
{{#var:also_articles}}</dl> | }} {{#var:also_footer}}
</div></div>
}}
|-
|{{#if:{{#var:location}}|
<div id="box">
== Source Location ==
<div style="padding: 0.5em">
{{#var:location}}
</div></div>
}}
|}
{{#var:footer}}</includeonly>

Latest revision as of 14:38, 17 December 2010