Difference between revisions of "Template:LSL Function"

From Second Life Wiki
Jump to navigation Jump to search
m (maybe I should just go to bed...)
(more to come later, shouldn't cause any compatibility problems, crash positions)
Line 63: Line 63:


{{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|* <span id="caveats-sleep"></span> This function causes the script to sleep for {{{func_sleep|}}} seconds. {{{func_sleep_note|}}}|{{#if:{{{func_sleep_note|}}}|* <span id="caveats-sleep"></span> {{{func_sleep_note|}}}}}}}{{#if:{{#var:caveats}}|
{{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|* <span id="caveats-sleep"></span> This function causes the script to sleep for {{{func_sleep|}}} seconds. {{{func_sleep_note|}}}|{{#if:{{{func_sleep_note|}}}|* <span id="caveats-sleep"></span> {{{func_sleep_note|}}}}}}}{{#if:{{#var:caveats}}|
{{#var:caveats}}}}
{{#var:caveats}}}}{{#if:{{{caveats|}}}|
{{{caveats|}}}}}
{{{caveats|}}}}}}}
 
{{#vardefine:bugs|{{#var:bugs}}
{{{bugs|}}}}}


{{#vardefine:PBR|{{#if:{{#var:examples}}{{{examples|}}}|{{PBR}}}}}}
{{#vardefine:PBR|{{#if:{{#var:examples}}{{{examples|}}}|{{PBR}}}}}}
{{#vardefine:examples|{{#var:examples}}{{#var:PBR}}
{{#vardefine:examples|{{#var:examples}}{{#var:PBR}}
{{{examples|}}}{{#var:PBR}}}}
{{{examples|}}}{{#var:PBR}}}}
{{#vardefine:simple-examples|{{#var:simple-examples}}
{{{simple-examples|}}}}}
{{#vardefine:complex-examples|{{#var:complex-examples}}
{{{complex-examples|}}}}}


{{#vardefine:PBR|{{#if:{{#var:helpers}}{{{helpers|}}}|{{PBR}}}}}}
{{#vardefine:PBR|{{#if:{{#var:helpers}}{{{helpers|}}}|{{PBR}}}}}}
Line 123: Line 132:
{{#vardefine:location|{{#var:location}}{{#var:PBR}}
{{#vardefine:location|{{#var:location}}{{#var:PBR}}
{{{location|}}}{{#var:PBR}}}}
{{{location|}}}{{#var:PBR}}}}
{{#vardefine:PBR|{{#if:{{#var:messaging}}{{{messaging|}}}|{{PBR}}}}}}
{{#vardefine:messaging|{{#var:messaging}}{{#var:PBR}}
{{{messaging|}}}{{#var:PBR}}}}


}}{{#if:{{#var:self}}|| __NOEDITSECTION__
}}{{#if:{{#var:self}}|| __NOEDITSECTION__
Line 134: Line 147:
''(Please use 'return_text' & 'return_type' or 'func_desc' to summarize the functions actions.)''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}
''(Please use 'return_text' & 'return_type' or 'func_desc' to summarize the functions actions.)''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}
{{RightToc|font-size:80%}}
{{RightToc|font-size:80%}}
<div id="box"><h2 style="display:none"> Summary </h2>{{#ifexpr:({{#var:BugCounter}} + 0) > 0|<span class="mw-headline" style="display:block; color:#FF0000; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; font-size:120%; font-weight:bolder; margin:0pt; padding:0.2em 0.5em; text-align:left; float:right;">[[#Issues|<span title="There {{#ifeq:{{#var:BugCounter}}|1|is 1 bug|are {{#var:BugCounter}} bugs}} reported for this {{#var:type}}." style="color:#FF0000;">!</span>]]</span>}}<span id="{{anchorencode:Description}}" style="display:none"></span><span id="{{anchorencode:Summary}}" class="mw-headline" style="display:block; padding-bottom:0.17em; padding-top:0.5em; background:transparent none repeat scroll 0% 0%; color:#546368; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; border-bottom:1px dotted #AAAAAA; font-size:120%; font-weight:bold; margin:0pt; padding:0.2em 0.5em; text-align:left;"> [[:Category:LSL_Functions{{#var:lang}}|Function]]: {{#if:{{{return_type|}}}|[[{{{return_type|}}}{{#var:lang}}|{{{return_type|}}}]]||}} [[{{{func}}}{{#var:lang}}|{{{func}}}]]( {{#if:{{{p1_name|}}}{{{p1_type|}}}| [[{{{p1_type|}}}{{#var:lang}}|{{{p1_type|}}}]] {{LSL Param|{{{p1_name|}}}}}{{#if:{{{p2_name|}}}{{{p2_type|}}}|, [[{{{p2_type|}}}{{#var:lang}}|{{{p2_type|}}}]] {{LSL Param|{{{p2_name|}}}}}{{#if:{{{p3_name|}}}{{{p3_type|}}}|, [[{{{p3_type|}}}{{#var:lang}}|{{{p3_type|}}}]] {{LSL Param|{{{p3_name|}}}}}{{#if:{{{p4_name|}}}{{{p4_type|}}}|, [[{{{p4_type|}}}{{#var:lang}}|{{{p4_type|}}}]] {{LSL Param|{{{p4_name|}}}}}{{#if:{{{p5_name|}}}{{{p5_type|}}}|, [[{{{p5_type|}}}{{#var:lang}}|{{{p5_type|}}}]] {{LSL Param|{{{p5_name|}}}}}{{#if:{{{p6_name|}}}{{{p6_type|}}}|, [[{{{p6_type|}}}{{#var:lang}}|{{{p6_type|}}}]] {{LSL Param|{{{p6_name|}}}}}{{#if:{{{p7_name|}}}{{{p7_type|}}}|, [[{{{p7_type|}}}{{#var:lang}}|{{{p7_type|}}}]] {{LSL Param|{{{p7_name|}}}}}{{#if:{{{p8_name|}}}{{{p8_type|}}}|, [[{{{p8_type|}}}{{#var:lang}}|{{{p8_type|}}}]] {{LSL Param|{{{p8_name|}}}}}{{#if:{{{p9_name|}}}{{{p9_type|}}}|, [[{{{p9_type|}}}{{#var:lang}}|{{{p9_type|}}}]] {{LSL Param|{{{p9_name|}}}}}{{#if:{{{p10_name|}}}{{{p10_type|}}}|, [[{{{p10_type|}}}{{#var:lang}}|{{{p10_type|}}}]] {{LSL Param|{{{p10_name|}}}}}{{#if:{{{p11_name|}}}{{{p11_type|}}}|, [[{{{p11_type|}}}{{#var:lang}}|{{{p11_type|}}}]] {{LSL Param|{{{p11_name|}}}}}{{#if:{{{p12_name|}}}{{{p12_type|}}}|, [[{{{p12_type|}}}{{#var:lang}}|{{{p12_type|}}}]] {{LSL Param|{{{p12_name|}}}}}}}}}}}}}}}}}}}}}}}}}}}}} )<nowiki>;</nowiki></span>
<div id="box"><h2 style="display:none"> Summary </h2>{{#ifexpr:({{#var:BugCounter}} + 0) > 0|<div class="mw-headline" style="float:right; margin: 5px 0.5em 0 0.5em;">{{#tag:imagemap|
Image:Issue_Type-Bug.gif{{!}}Buggy
default [[#{{anchorencode:Important Issues}}|There {{#ifeq:{{#var:BugCounter}}|1|is 1 important Jira Issue|are {{#var:BugCounter}} important Jira Issues}} pertaining to this function.]]
desc none
}}</div>}}<span id="{{anchorencode:Description}}" style="display:none"></span><span id="{{anchorencode:Summary}}" class="mw-headline" style="display:block; padding-bottom:0.17em; padding-top:0.5em; background:transparent none repeat scroll 0% 0%; color:#546368; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; border-bottom:1px dotted #AAAAAA; font-size:120%; font-weight:bold; margin:0pt; padding:0.2em 0.5em; text-align:left;"> [[:Category:LSL_Functions{{#var:lang}}|Function]]: {{#if:{{{return_type|}}}|[[{{{return_type|}}}{{#var:lang}}|{{{return_type|}}}]]||}} [[{{{func}}}{{#var:lang}}|{{{func}}}]]( {{#if:{{{p1_name|}}}{{{p1_type|}}}| [[{{{p1_type|}}}{{#var:lang}}|{{{p1_type|}}}]] {{LSL Param|{{{p1_name|}}}}}{{#if:{{{p2_name|}}}{{{p2_type|}}}|, [[{{{p2_type|}}}{{#var:lang}}|{{{p2_type|}}}]] {{LSL Param|{{{p2_name|}}}}}{{#if:{{{p3_name|}}}{{{p3_type|}}}|, [[{{{p3_type|}}}{{#var:lang}}|{{{p3_type|}}}]] {{LSL Param|{{{p3_name|}}}}}{{#if:{{{p4_name|}}}{{{p4_type|}}}|, [[{{{p4_type|}}}{{#var:lang}}|{{{p4_type|}}}]] {{LSL Param|{{{p4_name|}}}}}{{#if:{{{p5_name|}}}{{{p5_type|}}}|, [[{{{p5_type|}}}{{#var:lang}}|{{{p5_type|}}}]] {{LSL Param|{{{p5_name|}}}}}{{#if:{{{p6_name|}}}{{{p6_type|}}}|, [[{{{p6_type|}}}{{#var:lang}}|{{{p6_type|}}}]] {{LSL Param|{{{p6_name|}}}}}{{#if:{{{p7_name|}}}{{{p7_type|}}}|, [[{{{p7_type|}}}{{#var:lang}}|{{{p7_type|}}}]] {{LSL Param|{{{p7_name|}}}}}{{#if:{{{p8_name|}}}{{{p8_type|}}}|, [[{{{p8_type|}}}{{#var:lang}}|{{{p8_type|}}}]] {{LSL Param|{{{p8_name|}}}}}{{#if:{{{p9_name|}}}{{{p9_type|}}}|, [[{{{p9_type|}}}{{#var:lang}}|{{{p9_type|}}}]] {{LSL Param|{{{p9_name|}}}}}{{#if:{{{p10_name|}}}{{{p10_type|}}}|, [[{{{p10_type|}}}{{#var:lang}}|{{{p10_type|}}}]] {{LSL Param|{{{p10_name|}}}}}{{#if:{{{p11_name|}}}{{{p11_type|}}}|, [[{{{p11_type|}}}{{#var:lang}}|{{{p11_type|}}}]] {{LSL Param|{{{p11_name|}}}}}{{#if:{{{p12_name|}}}{{{p12_type|}}}|, [[{{{p12_type|}}}{{#var:lang}}|{{{p12_type|}}}]] {{LSL Param|{{{p12_name|}}}}}}}}}}}}}}}}}}}}}}}}}}}}} )<nowiki>;</nowiki></span>
<div style="padding: 0.5em; min-height: {{#if:{{{func_complexity|}}}|6em;|5em;}}">{{#ifeq:{{#var:mode}}|user|{{#if:{{#var:floater}}|<div id="box" style="float:right;">{{#var:floater}}</div>}}|<div id="box" style="float:right; margin: 0 0.5em; font-size:90%;">
<div style="padding: 0.5em; min-height: {{#if:{{{func_complexity|}}}|6em;|5em;}}">{{#ifeq:{{#var:mode}}|user|{{#if:{{#var:floater}}|<div id="box" style="float:right;">{{#var:floater}}</div>}}|<div id="box" style="float:right; margin: 0 0.5em; font-size:90%;">
{{{!}} class="collapsible"
{{{!}} class="collapsible"
Line 189: Line 206:
<h2>Constants</h2>
<h2>Constants</h2>
{{#var:constants}}
{{#var:constants}}
</div>}}}}{{#if:{{#var:caveats}}|<div id="box">
</div>}}}}<div id="box">
<h2>Caveats</h2>
<h2>Caveats</h2>
<div style="padding: 0.5em;">
<div style="padding: 0.5em;">
{{#var:caveats}}
{{#var:caveats}}
</div></div>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|<div id="box">
{{#if:{{#var:bugs}}|<h3 style="display:inline;">Important Issues </h3>~ {{JiraSearch/1|1={{{keywords|}}} {{{func}}}|2=Search JIRA for related Bugs}}
{{{!}} style="font-size:80%;"
{{#var:bugs}}
{{!}}}|{{JiraSearch/1|1={{{keywords|}}}|2=Search JIRA for related Bugs}}}}
</div></div>{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}{{#simple-examples}}{{#complex-examples}}|<div id="box">
<h2>Examples</h2>
<h2>Examples</h2>
<div style="padding: 0.5em;">
<div style="padding: 0.5em;">
{{#var:examples}}
{{#var:examples}}{{#if:{{#simple-examples}}|
<div style="float:left; min-width:200px; width:45%;">
===Simple Examples===
{{{!}}
{{#simple-examples}}
{{!}}}
</div>}}{{#if:{{#complex-examples}}|
<div style="float:left;">
===Complex Examples===
{{{!}}
{{#complex-examples}}
{{!}}}
</div>}}<div style="clear:left;"></div>
</div></div>}}{{#if:{{#var:helpers}}|<div id="box">
</div></div>}}{{#if:{{#var:helpers}}|<div id="box">
<h2>Useful Snippets</h2>
<h2>Useful Snippets</h2>
Line 223: Line 256:
{{#var:also_articles}}
{{#var:also_articles}}
{{!}}} }}{{#if:{{#var:also_library}}|
{{!}}} }}{{#if:{{#var:also_library}}|
<h3>Library and Examples</h3>
<h3>Libraries and Examples</h3>
{{{!}}
{{{!}}
{{#var:also_library}}
{{#var:also_library}}
Line 245: Line 278:
{{#var:history}}
{{#var:history}}
</div>}}{{#if:{{#var:issues}}|
</div>}}{{#if:{{#var:issues}}|
<h4> Issues </h4>
<h4 style="display:inline;">Issues </h4>~ {{JiraSearch/2|2={{{keywords|}}} {{{func}}}|2=Search JIRA for related Issues}}
{{{!}}
{{{!}}
{{#var:issues}}
{{#var:issues}}
Line 257: Line 290:
<h4> Source </h4><div>
<h4> Source </h4><div>
{{#var:location}}
{{#var:location}}
</div>}}{{#if:{{#var:messaging}}|
<h4> Messaging </h4><div>
{{#var:messaging}}
</div>}}{{#if:{{#var:footnotes}}|
</div>}}{{#if:{{#var:footnotes}}|
<h4 style="margin-bottom:0;"> Footnotes </h4>
<h4 style="margin-bottom:0;"> Footnotes </h4>

Revision as of 18:34, 21 May 2009