Difference between revisions of "Template:LSL Function/face"

From Second Life Wiki
Jump to: navigation, search
m (It's "its", not "it's", arrrrggghhh! lol)
Line 2: Line 2:
 
{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face|face}} number or {{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}
 
{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face|face}} number or {{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}
 
{{#vardefine:p_{{{1|none}}}_hover|face number or ALL_SIDES (-1)}}
 
{{#vardefine:p_{{{1|none}}}_hover|face number or ALL_SIDES (-1)}}
{{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}If '''{{LSL_Param|{{{1|none}}}}}''' is {{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} works {{#if:{{{ALL_SIDES|}}}|{{{ALL_SIDES|}}}|on all sides.}} {{#switch:{{NAMESPACE}}|Template=|User=|[[Category:LSL Face]]}}}}
+
{{#vardefine:facechoise|If '''{{LSL_Param|{{{1|none}}}}}''' is {{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} works {{#if:{{{ALL_SIDES|}}}|{{{ALL_SIDES|}}}|on all sides.}} {{#switch:{{NAMESPACE}}|Template=|User=|[[Category:LSL Face]]}}}}
{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{return|}}}{{{returns|}}}|
+
{{#vardefine:header_footnote|{{#if:{{{!footer|}}}|{{#var:header_footnote}}|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>{{#var:facechoise}}|{{#var:facechoise}}}}}}}}
 +
{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{!footer|}}}|
 +
*{{#var:facechoise}}|}}{{#if:{{{return|}}}{{{returns|}}}|
 
*If '''{{LSL_Param|{{{1|none}}}}}''' indicates a face that does not exist the return {{#if:{{{2|}}}|for the {{{2|}}} }} {{#if:{{{return|}}}| is {{{return|}}}| are {{{returns|}}} }}|
 
*If '''{{LSL_Param|{{{1|none}}}}}''' indicates a face that does not exist the return {{#if:{{{2|}}}|for the {{{2|}}} }} {{#if:{{{return|}}}| is {{{return|}}}| are {{{returns|}}} }}|
 
*The {{#if:{{{2|}}}|{{{2|}}}|function}} silently fails if its '''{{LSL_Param|{{{1|none}}}}}''' value indicates a face that does not exist}}}}
 
*The {{#if:{{{2|}}}|{{{2|}}}|function}} silently fails if its '''{{LSL_Param|{{{1|none}}}}}''' value indicates a face that does not exist}}}}

Revision as of 11:29, 14 February 2008

Variable Value
header_footnote If none is ALL_SIDES then the function works on all sides.
caveats
  • The function silently fails if its none value indicates a face that does not exist
p_none_desc face number or ALL_SIDES
p_none_hover face number or ALL_SIDES (-1)