Difference between revisions of "Template:LSLFunctionAll"
Line 87: | Line 87: | ||
'''Deprecated Function''' | '''Deprecated Function''' | ||
<div style="padding: 0.5em;background:#ffffff;"> | <div style="padding: 0.5em;background:#ffffff;"> | ||
''(This function has been deprecated{{#ifeq:{{{depreciated|}}}{{{deprecated|}}}|none|.|, please use {{LSLG|{{{depreciated|}}}{{{deprecated|}}}}} instead.}}''</div></div>{{#ifeq:{{FULLPAGENAME}}|Template:LSLFunctionAll|| [[Category:LSL Deprecated]] }} }} | ''(This function has been deprecated{{#ifeq:{{{depreciated|}}}{{{deprecated|}}}|none|.|, please use {{LSLG|{{{depreciated|}}}{{{deprecated|}}}}} instead.}}''</div></div>{{#ifeq:{{FULLPAGENAME}}|Template:LSLFunctionAll|| [[Category:LSL Deprecated]] }} |not_deprecated=true}} | ||
{{#if:{{{also|}}}| | {{#if:{{{also|}}}| | ||
<div id="box" style="background:red;"> | <div id="box" style="background:red;"> | ||
Line 118: | Line 118: | ||
|{{ #if: {{{spec|}}} | | |{{ #if: {{{spec|}}} | | ||
<div id="box"> | <div id="box"> | ||
== Specification == | == Specification == | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
Line 144: | Line 143: | ||
</div> | </div> | ||
|- | |- | ||
|<div id="box"> | |{{ #if: {{{not_deprecated|}}}{{{examples|}}} | | ||
<div id="box"> | |||
== Examples == | == Examples == | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
Line 150: | Line 150: | ||
</div> | </div> | ||
</div> | </div> | ||
|}} | |||
|- | |- | ||
|{{ #if: {{{helpers|}}} | | |{{ #if: {{{helpers|}}} | | ||
Line 160: | Line 161: | ||
| }} | | }} | ||
|- | |- | ||
|<div id="box"> | |{{ #if: {{{not_deprecated|}}}{{{notes|}}} | | ||
<div id="box"> | |||
== Notes == | == Notes == | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
Line 166: | Line 168: | ||
</div> | </div> | ||
</div> | </div> | ||
|}} | |||
|- | |- | ||
|{{ #if: {{{also_footer|}}}{{{related|}}}{{{also_functions|}}}{{{also_articles|}}}{{{also_header|}}} | | |{{ #if: {{{also_footer|}}}{{{related|}}}{{{also_functions|}}}{{{also_articles|}}}{{{also_header|}}} | |
Revision as of 18:51, 27 January 2007
Main
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.
{{LSLFunctionAll |func=llFunction |func_id |func_sleep=0.0 |func_energy=0.0 |func_desc |func_footnote |deprecated |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 |helpers |also_header |also_functions |also_articles |also_footer |notes }}
Example
Deprecated Function
return_type func( float only, float sets , float type, float and, float name, float pairs, float that, float are, float needed );
func_desc(hides if excluded)
| |||||||||||||||||||||||||||||||||
Specificationspec(hides if excluded) | |||||||||||||||||||||||||||||||||
Constantsconstants(hides if excluded) | |||||||||||||||||||||||||||||||||
Caveatscaveats(defaults to none) | |||||||||||||||||||||||||||||||||
Examplesexamples | |||||||||||||||||||||||||||||||||
Helper Functionshelpers(hides if excluded) | |||||||||||||||||||||||||||||||||
Notesnotes | |||||||||||||||||||||||||||||||||
See Also
also_header(hides if excluded)
|
- This page is based on information gathered from the Second Life client source, and as such has additional licensing restrictions.