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

From Second Life Wiki
Jump to: navigation, search
(need to fix allsides)
Line 1: Line 1:
 
{{#if:
 
{{#if:
  
<!--{{LSL Generic/request}}-->
+
{{#vardefine:header|{{#var:header}}{{#if:{{{nc|}}}{{#pos:{{#var:moded}}|r}}||
 
+
{{#switch:{{NAMESPACE}}|Template=|User=|[[Category:LSL Face{{#var:lang}}]]}}{{#if:{{{ALL_SIDES|}}}|[[Category:ALL_SIDES]]}}
{{#vardefine:header|{{#var:header}}
+
}}}}
{{#switch:{{#if:{{{nc|}}}|Template|{{NAMESPACE}}}}|Template=|User=|{{LSLC|Face{{#var:lang}}}}}}}}
+
  
 
{{#vardefine:ALL_SIDES|{{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}
 
{{#vardefine:ALL_SIDES|{{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}
Line 12: Line 11:
 
{{#vardefine:p_{{{1|none}}}_hover|face number{{#ifeq:{{{notall|}}}|*||<nowiki> </nowiki>or ALL_SIDES (-1)}}}}
 
{{#vardefine:p_{{{1|none}}}_hover|face number{{#ifeq:{{{notall|}}}|*||<nowiki> </nowiki>or ALL_SIDES (-1)}}}}
  
{{#ifeq:{{{notall|}}}|*||{{#vardefine:facechoise|If '''{{LSL_Param|{{{1|none}}}}}''' is {{#var:ALL_SIDES}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} {{#if:{{{get|}}}|{{{get|}}}|{{#if:{{{ALL_SIDES|}}}|{{{ALL_SIDES|}}}|works on all sides.}}}}}} {{#switch:{{#if:{{#pos:{{#var:moded}}|r}}|Request|{{NAMESPACE}}}}|Request=1|Template=|User=|[[Category:LSL Face{{#var:lang}}]]}}}}
+
{{#ifeq:{{{notall|}}}|*||{{#vardefine:facechoise|If '''{{LSL_Param|{{{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}}
 
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if:{{{!footer|}}}||{{PBR}}

Revision as of 18:24, 14 October 2010

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