Difference between revisions of "Template:LSL Function/face"
Jump to navigation
Jump to search
m (trying to crush a bug in another template, lets hope this was the cause.) |
|||
Line 1: | Line 1: | ||
{{#if: | {{#if: | ||
{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face|face}} number or {{LSL Const|ALL_SIDES|integer|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|hex=0xFFFFFFFF}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} works on all sides. {{#switch:{{NAMESPACE}}|Template=|User=|{{LSLC|Face}}}}}} | {{#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 on all sides. {{#switch:{{NAMESPACE}}|Template=|User=|{{LSLC|Face}}}}}} | ||
{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{return|}}}{{{returns|}}}| | {{#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|}}}}}| | *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 | *The {{#if:{{{2|}}}|{{{2|}}}|function}} silently fails if it's '''{{LSL_Param|{{{1|none}}}}}''' value indicates a face that does not exist}}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{#var:header_footnote}} | {|{{Prettytable}} | ||
|-{{Hl2}} | |||
{{#var:caveats}} | !Variable | ||
!Value | |||
{{#var:p_{{{1|none}}}_desc}} | |- | ||
|header_footnote | |||
{{#var:p_{{{1|none}}}_hover}} | |{{#var:header_footnote}} | ||
|- | |||
|caveats | |||
|{{#var:caveats}} | |||
|- | |||
|p_{{{1|none}}}_desc | |||
|{{#var:p_{{{1|none}}}_desc}} | |||
|- | |||
|p_{{{1|none}}}_hover | |||
|{{#var:p_{{{1|none}}}_hover}} | |||
|} | |||
</noinclude> | </noinclude> |