Difference between revisions of "Template:LSLFunctionAll"

From Second Life Wiki
Jump to navigation Jump to search
 
(72 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__ __NOEDITSECTION__ <includeonly> <!-- {{lowercase|{{{func}}}}} -->
<noinclude>See: [[Template:LSL Function]]</noinclude><includeonly>
{| width="100%"
<div id="box" style="background:red;">
|-
&nbsp;&nbsp;''' Outdated templated used '''
|valign="top"|
<div style="padding: 0.5em;background:#ffffff;">
{{LSLFunction|{{{func}}}|{{{func_id|}}}|{{{func_sleep|}}}|{{{func_energy|}}}
''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|}}}|
|r={{{return_type|}}}
<div id="box" style="background:yellow;">
|rd={{{return_text|}}}
&nbsp;&nbsp;''' 'also' Tag Removed'''
|p1t={{{p1_type|}}}|p1={{{p1_name|}}}|p1d={{{p1_desc|}}}
<div style="padding: 0.5em;background:#ffffff;">
|p2t={{{p2_type|}}}|p2={{{p2_name|}}}|p2d={{{p2_desc|}}}
''(Please use 'also_header','also_events','also_functions','also_articles', or 'also_footer')''</div></div>{{#if:{{{self|}}}|| [[Category:LSL FixMe]] }} }}
|p3t={{{p3_type|}}}|p3={{{p3_name|}}}|p3d={{{p3_desc|}}}
{{LSL Function
|p4t={{{p4_type|}}}|p4={{{p4_name|}}}|p4d={{{p4_desc|}}}
|func={{{func}}}
|p5t={{{p5_type|}}}|p5={{{p5_name|}}}|p5d={{{p5_desc|}}}
|func_id={{{func_id}}}
|p6t={{{p6_type|}}}|p6={{{p6_name|}}}|p6d={{{p6_desc|}}}
|func_sleep={{{func_sleep}}}
|p7t={{{p7_type|}}}|p7={{{p7_name|}}}|p7d={{{p7_desc|}}}
|func_energy={{{func_energy}}}
|p8t={{{p8_type|}}}|p8={{{p8_name|}}}|p8d={{{p8_desc|}}}
|func_desc={{{func_desc|}}}
|p9t={{{p9_type|}}}|p9={{{p9_name|}}}|p9d={{{p9_desc|}}}
|func_footnote={{{func_footnote|}}}
|p10t={{{p10_type|}}}|p10={{{p10_name|}}}|p10d={{{p10_desc|}}}
|deprecated={{{deprecated|}}}{{{depreciated|}}}
|p11t={{{p11_type|}}}|p11={{{p11_name|}}}|p11d={{{p11_desc|}}}
|return_type={{{return_type|}}}
|p12t={{{p12_type|}}}|p12={{{p12_name|}}}|p12d={{{p12_desc|}}}
|return_text={{{return_text|}}}
|tb={{{func_desc|}}}
|p1_type={{{p1_type|}}}|p1_name={{{p1_name|}}}|p1_desc={{{p1_desc|}}}
|te={{{func_footnote|}}}
|p2_type={{{p2_type|}}}|p2_name={{{p2_name|}}}|p2_desc={{{p2_desc|}}}
}}
|p3_type={{{p3_type|}}}|p3_name={{{p3_name|}}}|p3_desc={{{p3_desc|}}}
|-
|p4_type={{{p4_type|}}}|p4_name={{{p4_name|}}}|p4_desc={{{p4_desc|}}}
|{{ #if: {{{spec|}}} |
|p5_type={{{p5_type|}}}|p5_name={{{p5_name|}}}|p5_desc={{{p5_desc|}}}
<div id="box">
|p6_type={{{p6_type|}}}|p6_name={{{p6_name|}}}|p6_desc={{{p6_desc|}}}
== Specification ==
|p7_type={{{p7_type|}}}|p7_name={{{p7_name|}}}|p7_desc={{{p7_desc|}}}
<div style="padding: 0.5em">
|p8_type={{{p8_type|}}}|p8_name={{{p8_name|}}}|p8_desc={{{p8_desc|}}}
{{{spec}}}
|p9_type={{{p9_type|}}}|p9_name={{{p9_name|}}}|p9_desc={{{p9_desc|}}}
</div>
|p10_type={{{p10_type|}}}|p10_name={{{p10_name|}}}|p10_desc={{{p10_desc|}}}
</div>
|p11_type={{{p11_type|}}}|p11_name={{{p11_name|}}}|p11_desc={{{p11_desc|}}}
| }}
|p12_type={{{p12_type|}}}|p12_name={{{p12_name|}}}|p12_desc={{{p12_desc|}}}
|-
|constants={{{constants|}}}
|{{ #if: {{{constants|}}} |
|spec={{{spec|}}}
<div id="box">
|caveats={{{caveats|}}}
== Constants ==
|examples={{{examples|}}}
<div style="padding: 0.5em">
|helpers={{{helpers|}}}
{{{constants}}}
|also_header={{{also_header|}}}
</div>
|also_events={{{also_events|}}}
</div>
|also_functions={{{also_functions|}}}
| }}
|also_articles={{{also_articles|}}}
|-
|also_footer={{{also_footer|}}}
|<div id="box">
|notes={{{notes|}}}
== Caveats ==
|mode={{{mode|}}}
<div style="padding: 0.5em">
|sort={{{sort|}}}
{{ #if: {{{caveats|}}} | {{{caveats|}}} |
}}</includeonly>
* 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>
| }}
|-
|{{ #if: {{{related|}}} |  
<div id="box">
== Related Functions ==
<div style="padding: 0.5em">
{{{related}}}
</div>
</div>
| }}
|-
|<div id="box">
== Notes ==
<div style="padding: 0.5em">
{{ #if: {{{notes|}}} | {{{notes|}}} | }}
</div>
</div>
|-
|<div id="box">
== See Also ==
<div style="padding: 0.5em">
{{ #if: {{{also|}}} | {{{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)
 
<pre>
{{LSLFunctionAll
|func=llFunction
|func_id
|func_sleep=0.0
|func_energy=0.0
|func_desc
|func_footnote
|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>
</noinclude>

Latest revision as of 03:29, 28 January 2007