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

From Second Life Wiki
Jump to navigation Jump to search
m
m (Undo revision 323553 by Strife Onizuka (Talk) wrong solution)
Line 7: Line 7:
{{#vardefine:p_{{{1|none}}}_hover|face number or ALL_SIDES (-1)}}
{{#vardefine:p_{{{1|none}}}_hover|face number or ALL_SIDES (-1)}}


{{#vardefine:facechoise|<div>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}}]]}}</div>}}
{{#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}}
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if:{{{!footer|}}}||{{PBR}}
{{#if:{{{!footer|}}}||{{#var:facechoise}}}}}}
{{#var:facechoise}}}}}}


{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{!footer|}}}|
{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{!footer|}}}|

Revision as of 19:36, 17 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.