Difference between revisions of "Template:LSLFunctionAll"

From Second Life Wiki
Jump to navigation Jump to search
 
(63 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__ __NOEDITSECTION__ <includeonly>{{#if:{{{depreciated|}}}{{{deprecated|}}}|
<noinclude>See: [[Template:LSL Function]]</noinclude><includeonly>
<div id="box" style="background:red;">
<div id="box" style="background:red;">
&nbsp;&nbsp;'''Deprecated Function'''
&nbsp;&nbsp;''' Outdated templated used '''
<div style="padding: 0.5em;background:#ffffff;">
<div style="padding: 0.5em;background:#ffffff;">
''(This function has been depreciated{{#ifeq:{{{depreciated|}}}{{{deprecated|}}}|none|.|, please use {{LSLG|{{{depreciated|}}}{{{deprecated|}}}}} instead.}}''</div></div>[[Category:LSL Depreciated]]}} <!-- {{lowercase|{{{func}}}}} -->
''Please change the template from 'LSLFunctionAll' to 'LSL_Function' (just replace 'LSLFunctionAll' with 'LSL_Function', do this after fixing any other erorr messages.''</div></div>{{#if:{{{self|}}}|| [[Category:LSL FixMe]] }}{{#if:{{{also|}}}|
{| width="100%"
<div id="box" style="background:yellow;">
|-
&nbsp;&nbsp;''' 'also' Tag Removed'''
|valign="top"|
<div style="padding: 0.5em;background:#ffffff;">
{{LSLFunction|{{{func}}}|{{{func_id|}}}|{{{func_sleep|}}}|{{{func_energy|}}}
''(Please use 'also_header','also_events','also_functions','also_articles', or 'also_footer')''</div></div>{{#if:{{{self|}}}|| [[Category:LSL FixMe]] }} }}
|r={{{return_type|}}}
{{LSL Function
|rd={{{return_text|}}}
|func={{{func}}}
|p1t={{{p1_type|}}}|p1={{{p1_name|}}}|p1d={{{p1_desc|}}}
|func_id={{{func_id}}}
|p2t={{{p2_type|}}}|p2={{{p2_name|}}}|p2d={{{p2_desc|}}}
|func_sleep={{{func_sleep}}}
|p3t={{{p3_type|}}}|p3={{{p3_name|}}}|p3d={{{p3_desc|}}}
|func_energy={{{func_energy}}}
|p4t={{{p4_type|}}}|p4={{{p4_name|}}}|p4d={{{p4_desc|}}}
|func_desc={{{func_desc|}}}
|p5t={{{p5_type|}}}|p5={{{p5_name|}}}|p5d={{{p5_desc|}}}
|func_footnote={{{func_footnote|}}}
|p6t={{{p6_type|}}}|p6={{{p6_name|}}}|p6d={{{p6_desc|}}}
|deprecated={{{deprecated|}}}{{{depreciated|}}}
|p7t={{{p7_type|}}}|p7={{{p7_name|}}}|p7d={{{p7_desc|}}}
|return_type={{{return_type|}}}
|p8t={{{p8_type|}}}|p8={{{p8_name|}}}|p8d={{{p8_desc|}}}
|return_text={{{return_text|}}}
|p9t={{{p9_type|}}}|p9={{{p9_name|}}}|p9d={{{p9_desc|}}}
|p1_type={{{p1_type|}}}|p1_name={{{p1_name|}}}|p1_desc={{{p1_desc|}}}
|p10t={{{p10_type|}}}|p10={{{p10_name|}}}|p10d={{{p10_desc|}}}
|p2_type={{{p2_type|}}}|p2_name={{{p2_name|}}}|p2_desc={{{p2_desc|}}}
|p11t={{{p11_type|}}}|p11={{{p11_name|}}}|p11d={{{p11_desc|}}}
|p3_type={{{p3_type|}}}|p3_name={{{p3_name|}}}|p3_desc={{{p3_desc|}}}
|p12t={{{p12_type|}}}|p12={{{p12_name|}}}|p12d={{{p12_desc|}}}
|p4_type={{{p4_type|}}}|p4_name={{{p4_name|}}}|p4_desc={{{p4_desc|}}}
|tb={{{func_desc|}}}
|p5_type={{{p5_type|}}}|p5_name={{{p5_name|}}}|p5_desc={{{p5_desc|}}}
|te={{{func_footnote|}}}
|p6_type={{{p6_type|}}}|p6_name={{{p6_name|}}}|p6_desc={{{p6_desc|}}}
}}
|p7_type={{{p7_type|}}}|p7_name={{{p7_name|}}}|p7_desc={{{p7_desc|}}}
|-
|p8_type={{{p8_type|}}}|p8_name={{{p8_name|}}}|p8_desc={{{p8_desc|}}}
|{{ #if: {{{spec|}}} |
|p9_type={{{p9_type|}}}|p9_name={{{p9_name|}}}|p9_desc={{{p9_desc|}}}
<div id="box">
|p10_type={{{p10_type|}}}|p10_name={{{p10_name|}}}|p10_desc={{{p10_desc|}}}
== Specification ==
|p11_type={{{p11_type|}}}|p11_name={{{p11_name|}}}|p11_desc={{{p11_desc|}}}
<div style="padding: 0.5em">
|p12_type={{{p12_type|}}}|p12_name={{{p12_name|}}}|p12_desc={{{p12_desc|}}}
{{{spec}}}
|constants={{{constants|}}}
</div>
|spec={{{spec|}}}
</div>
|caveats={{{caveats|}}}
| }}
|examples={{{examples|}}}
|-
|helpers={{{helpers|}}}
|{{ #if: {{{constants|}}} |
|also_header={{{also_header|}}}
<div id="box">
|also_events={{{also_events|}}}
== Constants ==
|also_functions={{{also_functions|}}}
<div style="padding: 0.5em">
|also_articles={{{also_articles|}}}
{{{constants}}}
|also_footer={{{also_footer|}}}
</div>
|notes={{{notes|}}}
</div>
|mode={{{mode|}}}
| }}
|sort={{{sort|}}}
|-
}}</includeonly>
|<div id="box">
== Caveats ==
<div style="padding: 0.5em">
{{ #if: {{{caveats|}}} | {{{caveats|}}} |
* None known
}}
</div>
</div>
|-
|<div id="box">
== Examples ==
<div style="padding: 0.5em">
{{ #if: {{{examples|}}} | {{{examples|}}} | }}
</div>
</div>
|-
|{{ #if: {{{helpers|}}} |  
<div id="box">
== Helper Functions ==
<div style="padding: 0.5em">
{{{helpers}}}
</div>
</div>
| }}
|-
|<div id="box">
== Notes ==
<div style="padding: 0.5em">
{{ #if: {{{notes|}}} | {{{notes|}}} | }}
</div>
</div>
|-
|{{ #if: {{{related|}}} |  
<div id="box">
== Related Functions ==
<div style="padding: 0.5em">
{{{related}}}
</div>
</div>
| }}
|-
|{{ #if: {{{also|}}} |  
<div id="box">
== See Also ==
<div style="padding: 0.5em">
{{{also}}}
</div>
</div>
| }}
|}
</includeonly>
<noinclude>
This template renders ever function page. If it is to be edited it should be done in such a way as to not break existing content.
 
It uses the template [[Template:LSLFunction]] to render the first box.
 
One problem with using this template, is you must turn off section editing for the page (the template does that for you)
 
If most fields are left blank they do not show up.
Set 'depreciated=none' if the function is depreciated but lacks a replacement.
 
<pre>
{{LSLFunctionAll
|func=llFunction
|func_id
|func_sleep=0.0
|func_energy=0.0
|func_desc
|func_footnote
|depreciated
|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
|return_type=integer
|return_text=that is set to zero.
|constants
|spec=Function template thingy
|caveats
|examples
|related
|helpers
|also
|notes
}}
</pre>
 
==Example==
<div id="box">
{{LSLFunctionAll
|func=func
|func_id=func_id
|func_sleep=func_sleep
|func_energy=func_energy
|func_desc=func_desc
|func_footnote=func_footnote
|depreciated=depreciated (if you set to none, it excludes this text)
|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
|return_type=return_type
|return_text=return_text(hides if excluded, if return_type is excluded this value is ignored)
|constants=constants(hides if excluded)
|spec=spec(hides if excluded)
|caveats=caveats(defaults to none)
|examples=examples
|related=related(hides if excluded)
|helpers=helpers(hides if excluded)
|also=also(hides if excluded)
|notes=notes
}}
</box>
</noinclude>

Latest revision as of 03:29, 28 January 2007