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

From Second Life Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 
{{#if:
 
{{#if:
 +
 
{{#vardefine:ALL_SIDES|{{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}
 
{{#vardefine:ALL_SIDES|{{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}
 +
 
{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face{{#var:lang}}|face}} number or {{#var:ALL_SIDES}}}}
 
{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face{{#var:lang}}|face}} number or {{#var:ALL_SIDES}}}}
 +
 
{{#vardefine:p_{{{1|none}}}_hover|face number or ALL_SIDES (-1)}}
 
{{#vardefine:p_{{{1|none}}}_hover|face number or ALL_SIDES (-1)}}
 +
 
{{#vardefine:facechoise|If '''{{LSL_Param|{{{1|none}}}}}''' is {{#var:ALL_SIDES}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} {{#if:{{{get|}}}|{{{get|}}}|works {{#if:{{{ALL_SIDES|}}}|{{{ALL_SIDES|}}}|on all sides.}}}} {{#switch:{{NAMESPACE}}|Template=|User=|[[Category:LSL Face{{#var:lang}}]]}}}}
 
{{#vardefine:facechoise|If '''{{LSL_Param|{{{1|none}}}}}''' is {{#var:ALL_SIDES}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} {{#if:{{{get|}}}|{{{get|}}}|works {{#if:{{{ALL_SIDES|}}}|{{{ALL_SIDES|}}}|on all sides.}}}} {{#switch:{{NAMESPACE}}|Template=|User=|[[Category:LSL Face{{#var:lang}}]]}}}}
 +
 
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if:{{{!footer|}}}||{{#if:{{#var:header_footnote}}|<br/>}}{{#var:facechoise}}}}}}
 
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if:{{{!footer|}}}||{{#if:{{#var:header_footnote}}|<br/>}}{{#var:facechoise}}}}}}
 +
 
{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{!footer|}}}|
 
{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{!footer|}}}|
 
*{{#var:facechoise}}|}}{{#if:{{{return|}}}{{{returns|}}}|
 
*{{#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.}}}}
 +
 
 
}}<noinclude>
 
}}<noinclude>
{|{{Prettytable}}
+
{| {{Prettytable}}
 
|-{{Hl2}}
 
|-{{Hl2}}
!Variable
+
! #var
!Value
+
! value
 
|-
 
|-
|header_footnote
+
{{VarPair|ALL_SIDES}}
|{{#var:header_footnote}}
+
 
|-
 
|-
|caveats
+
{{VarPair|p_{{{1|none}}}_desc}}
|{{#var:caveats}}
+
 
|-
 
|-
|p_{{{1|none}}}_desc
+
{{VarPair|p_{{{1|none}}}_hover}}
|{{#var:p_{{{1|none}}}_desc}}
+
 
|-
 
|-
|p_{{{1|none}}}_hover
+
{{VarPair|facechoise}}
|{{#var:p_{{{1|none}}}_hover}}
+
|-
 +
{{VarPair|header_footnote}}
 +
|-
 +
{{VarPair|caveats}}
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 06:14, 16 April 2009

#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.