Difference between revisions of "Template:LSL Function"
Jump to navigation
Jump to search
m (doing category for multi-lang) |
m |
||
Line 2: | Line 2: | ||
See [[{{#var:langbase}}/docs{{#var:lang}}]] for documentation. | See [[{{#var:langbase}}/docs{{#var:lang}}]] for documentation. | ||
</noinclude><includeonly>{{#if:{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{{sort|}}}}}}}{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}}<div id="sort" style="display:none">{{DEFAULTSORT:{{#var:sort}}}}{{#var:sort}}</div>{{#if:{{#var:nofixname}}||{{#if:{{#pos:{{lc:{{FULLPAGENAMEE}}}}|{{lc:{{{func}}}}}}}|<div id="RealTitleBanner" style="display:none"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{func}}}</span></div>}}}}{{#if: | </noinclude><includeonly>{{#if:{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{{sort|}}}}}}}{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}}<div id="sort" style="display:none">{{DEFAULTSORT:{{#var:sort}}}}{{#var:sort}}</div>{{#if:{{#var:nofixname}}||{{#if:{{#pos:{{lc:{{FULLPAGENAMEE}}}}|{{lc:{{{func}}}}}}}|<div id="RealTitleBanner" style="display:none"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{func}}}</span></div>}}}}{{#if: | ||
{{#vardefine:type|function}} | |||
{{#vardefine:func_id|{{{func_id|}}}}} | {{#vardefine:func_id|{{{func_id|}}}}} | ||
{{#vardefine: | {{#vardefine:mode|{{#var:mode}}{{{mode|}}}}} | ||
{{#vardefine:self|{{#var:self}}{{{self|}}}}} | |||
{{{{#switch:{{#var:mode}} | |||
|god=LSL_Generic/god{{#var:lang}} | |||
|request=LSL_Generic/request{{#var:lang}} | |||
|pre-release=LSL_Generic/pre-release{{#var:lang}} | |||
|preview=LSL_Generic/preview{{#var:lang}} | |||
|!}}|}} | |||
{{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated{{#var:lang}}|!}}|{{{deprecated|}}}|}} | |||
{{#vardefine:header_desc|{{#if:{{#var:header_desc}}|{{#var:header_desc}}<br/>}}{{#var:header_desc}}{{{func_desc|}}}}} | |||
{{#vardefine:return_text|{{#var:return_text}}{{{return_text|}}} }} | |||
{{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}} | {{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}} | ||
{{#vardefine:p_{{{p1_name|}}}_hover|{{#var:p_{{{p1_name|}}}_hover}}{{{p1_hover|}}}}} | {{#vardefine:p_{{{p1_name|}}}_hover|{{#var:p_{{{p1_name|}}}_hover}}{{{p1_hover|}}}}} | ||
Line 28: | Line 43: | ||
{{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}} | {{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}} | ||
{{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}} | {{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}} | ||
{{#vardefine: | |||
{{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/>}}{{{spec|}}}}} | {{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{{func_footnote|}}}{{{func_footer|}}}}} | ||
{{#vardefine:newbie|{{#if:{{#var:newbie}}|{{#var:newbie}}|{{#if:{{{newbie|}}}|{{{newbie|}}}|{{#var:langbase}}/Newbie Notes{{#var:lang}}}}}}}} | |||
{{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/> | |||
{{{spec|}}}|{{{spec|}}}}}}} | |||
{{#vardefine:constants_nb|{{#var:constants_nb}} | |||
{{{constants|}}}}} | |||
{{#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}}}} | |||
{{{caveats|}}}}} | |||
{{#vardefine:examples|{{#var:examples}}{{{examples|}}}}} | {{#vardefine:examples|{{#var:examples}}{{{examples|}}}}} | ||
{{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}} | {{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}} | ||
{{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}} | {{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}} | ||
{{#vardefine:also_events|{{#var:also_events}} | {{#vardefine:also_events|{{#var:also_events}} | ||
{{{also_events|}}}}} | {{{also_events|}}}}} | ||
Line 44: | Line 72: | ||
{{{also_library|}}}}} | {{{also_library|}}}}} | ||
{{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}} | {{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}} | ||
{{#vardefine:notes|{{#var:notes}}{{{notes|}}}}} | |||
{{#vardefine:history|{{#if:{{#var:history}}|{{#var:history}} | |||
{{{history|}}}}}|{{{history|}}}}} | |||
{{#vardefine:deepnotes|{{#if:{{#var:deepnotes}}|{{#var:deepnotes}} | |||
{{{deepnotes|}}}}}|{{{deepnotes|}}}}} | |||
{{#vardefine:mono|{{#if:{{#var:mono}}|{{#var:mono}} | |||
{{{mono|}}}}}|{{{mono|}}}}} | |||
{{#vardefine:lso|{{#if:{{#var:lso}}|{{#var:lso}} | |||
{{{lso|}}}}}|{{{lso|}}}}} | |||
{{#vardefine:issues|{{#if:{{#var:issues}}|{{#var:issues}} | {{#vardefine:issues|{{#if:{{#var:issues}}|{{#var:issues}} | ||
{{{issues|}}}}}|{{{issues|}}}}} | {{{issues|}}}}}|{{{issues|}}}}} | ||
{{#vardefine: | {{#vardefine:also_tests|{{#var:also_tests}} | ||
{{ | {{{also_tests|}}}}} | ||
{{#vardefine:location|{{#var:location}}{{{location|}}}}} | {{#vardefine:location|{{#var:location}}{{{location|}}}}} | ||
}}{{#if:{{#var:self}}|| __NOEDITSECTION__ | }}{{#if:{{#var:self}}|| __NOEDITSECTION__ | ||
}}{{#var:header}}{{#if:{{#var:func_id}}{{#var:mode}}|| | }}{{#var:header}}{{#if:{{#var:func_id}}{{#var:mode}}|| | ||
Line 121: | Line 150: | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#var:spec}} | {{#var:spec}} | ||
</div></div>}}{{#if:{{#var:constants_nb}}{{#var:constants | </div></div>}}{{#if:{{#var:constants_nb}}{{#var:constants}}| | ||
{{#var:constants_nb}} | {{#var:constants_nb}} | ||
{{#if:{{#var:constants}}| | |||
<div id="box"> | <div id="box"> | ||
<h2>Constants</h2> | <h2>Constants</h2> | ||
Line 146: | Line 175: | ||
<h2>See Also</h2> | <h2>See Also</h2> | ||
<div style="padding: 0.5em;"> | <div style="padding: 0.5em;"> | ||
{{#if:{{#var:also_header}}| | {{#if:{{#var:also_header}}|<div> | ||
{{#var:also_header}}}}{{#if:{{#var:also_events}}| | {{#var:also_header}} | ||
</div>}}{{#if:{{#var:also_events}}| | |||
<h3>Events</h3> | <h3>Events</h3> | ||
{{{!}} | {{{!}} | ||
Line 163: | Line 193: | ||
{{{!}} | {{{!}} | ||
{{#var:also_library}} | {{#var:also_library}} | ||
{{!}}} }} | {{!}}} }}{{#if:{{#var:also_footer}}| | ||
{{#if:{{#var:also_footer}}|< | <div style="margin-top:0.5em;"> | ||
</div></div>}}{{#if: | {{#var:also_footer}} | ||
</div>}} | |||
</div></div>}}{{#if:{{#var:history}}{{#var:issues}}{{#var:location}}{{#var:footnotes}}{{#var:deepnotes}}{{#var:mono}}{{#var:lso}}{{#var:also_tests}}| | |||
<div id="box"> | <div id="box"> | ||
== Deep Notes == | == Deep Notes == | ||
<div style="padding: 0.5em"><div> | <div style="padding: 0.5em"><div> | ||
{{#var:deepnotes}} | |||
</div>{{#if: | </div>{{#if:{{#var:mono}}| | ||
<h4> Mono VM Notes </h4><div> | <h4> Mono VM Notes </h4><div> | ||
{{#var:mono}} | |||
</div>}}{{#if: | </div>}}{{#if:{{#var:lso}}| | ||
<h4> LSO VM Notes </h4><div> | <h4> LSO VM Notes </h4><div> | ||
{{#var:lso}} | |||
</div>}}{{#if: | </div>}}{{#if:{{#var:history}}| | ||
<h4> History </h4><div> | <h4> History </h4><div> | ||
{{#var:history}} | |||
</div>}}{{#if: | </div>}}{{#if:{{#var:issues}}| | ||
<h4> Issues </h4> | <h4> Issues </h4> | ||
{{{!}} | {{{!}} | ||
{{#var:issues}} | |||
{{!}}} | {{!}}} | ||
}}{{#if:{{#var:also_tests}}| | }}{{#if:{{#var:also_tests}}| | ||
Line 201: | Line 233: | ||
{{{comments|}}} | {{{comments|}}} | ||
</div></div>}} | </div></div>}} | ||
{{#var:footer}} {{#if:{{#var:self}}|| {{#switch:{{#var:mode}}|request|user=|#default= [[Category:LSL Functions{{#var:lang}}]] {{#ifexpr:({{#var:BugCounter}} + 0) > 0|[[Category:LSL topics with bugs{{#var:lang}}]]}} [[Category:LSL Functions/ID{{#var:lang}}| {{padleft:{{#var:func_id}}|5|0}}]] {{#if:{{#var:examples}}||[[Category:LSL Needs Example{{#var:lang}}]]}} {{LSL Unhelpful|{{{func}}}|}} }} {{#if:{{{cat1|}}}|[[Category:LSL {{{cat1}}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2}}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3}}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4}}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5}}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6}}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7}}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8}}}]]}} }}</includeonly> | {{#var:footer}} {{#if:{{#var:self}}|| {{#switch:{{#var:mode}}|request|user=|#default= [[Category:LSL Functions{{#var:lang}}]] {{#ifexpr:({{#var:BugCounter}} + 0) > 0|[[Category:LSL topics with bugs{{#var:lang}}]] [[Category:LSL topics with the most bugs{{#var:lang}}| {{#pad:{{#expr:100-{{#var:BugCounter}}}}|2|0}}{{PAGENAME}}]]}} [[Category:LSL Functions/ID{{#var:lang}}| {{padleft:{{#var:func_id}}|5|0}}]] {{#if:{{#var:examples}}||[[Category:LSL Needs Example{{#var:lang}}]]}} {{LSL Unhelpful|{{{func}}}|}} }} {{#if:{{{cat1|}}}|[[Category:LSL {{{cat1}}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2}}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3}}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4}}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5}}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6}}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7}}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8}}}]]}} }}</includeonly> |
Revision as of 20:06, 25 October 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
See Template:LSL Function/docs for documentation.