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

From Second Life Wiki
Jump to: navigation, search
m (*sigh*)
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:
+
{{LSL Injection Test}}{{#if:
{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face|face}} number or {{LSL Const|ALL_SIDES|integer|hex=0xFFFFFFFF}}}}
+
{{#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|hex=0xFFFFFFFF}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} works on all sides. {{#switch:{{NAMESPACE}}|Template=|User=|{{LSLC|Face}}}}}}
+
{{#vardefine:caveats|{{#var:caveats}}{{#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|}}}}}|
+
*The {{#if:{{{2|}}}|{{{2|}}}|function}} silently fails if it's '''{{LSL_Param|{{{1|none}}}}}''' value indicates a face that does not exist}}}}
+
}}<noinclude>
+
{{#var:header_footnote}}
+
  
{{#var:caveats}}
+
{{#vardefine:header|{{#var:header}}{{#if:{{{nc|}}}{{#pos:{{#var:moded}}|r}}||{{#switch:{{NAMESPACE}}|Template=|User=|[[Category:LSL Face{{#var:lang}}]][[Category:LSL Face{{#var:lang}}/{{#if:{{{return|}}}{{{returns|}}}|Get|Set}}]]}}}}}}
  
{{#var:p_{{{1|none}}}_desc}}
+
{{#vardefine:ALL_SIDES|{{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}
  
{{#var:p_{{{1|none}}}_hover}}
+
{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face{{#var:lang}}|face}} number{{#ifeq:{{{notall|}}}|*||<nowiki> </nowiki>or {{#var:ALL_SIDES}}}}}}
 +
 
 +
{{#vardefine:p_{{{1|none}}}_hover|face number{{#ifeq:{{{notall|}}}|*||<nowiki> </nowiki>or ALL_SIDES (-1)}}}}
 +
 
 +
{{#ifeq:{{{notall|}}}|*||{{#vardefine:facechoise|If {{LSLP|{{{1|none}}}}} is {{#var:ALL_SIDES}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} {{#if:{{{get|}}}|{{{get|}}}|{{#if:{{{ALL_SIDES|}}}|{{{ALL_SIDES|}}}|works on all sides.}}}}}}}}
 +
 
 +
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if:{{{!footer|}}}||{{PBR}}
 +
{{#var:facechoise}}{{PBR}}}}}}
 +
 
 +
{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{!footer|}}}|
 +
*{{#var:facechoise}}|}}{{#if:{{{return|}}}{{{returns|}}}|
 +
*If {{LSLP|{{{1|none}}}}} indicates a face that does not exist the {{#if:{{{2|}}}|{{{2|}}}}} {{#if:{{{return|}}}|return is {{{return|}}}| returns {{{returns|}}}}}|
 +
*The {{#if:{{{2|}}}|{{{2|}}}|function}} silently fails if its {{LSLP|{{{1|none}}}}} value indicates a face that does not exist.}}}}
 +
 
 +
}}<noinclude>
 +
{| {{Prettytable}}
 +
|-{{Hl2}}
 +
! #var
 +
! value
 +
|-
 +
{{VarPair|ALL_SIDES}}
 +
|-
 +
{{VarPair|p_{{{1|none}}}_desc}}
 +
|-
 +
{{VarPair|p_{{{1|none}}}_hover}}
 +
|-
 +
{{VarPair|facechoise}}
 +
|-
 +
{{VarPair|header_footnote}}
 +
|-
 +
{{VarPair|caveats}}
 +
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 00:43, 6 January 2013

#var value
ALL_SIDES ALL_SIDES
p_none_desc face number or ALL_SIDES
p_none_hover face number or ALL_SIDES (-1)
facechoise If none is ALL_SIDES then the function works on all sides.
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.