Difference between revisions of "Template:LSL Function/boolean"
Jump to navigation
Jump to search
m |
m (Retry) |
||
Line 3: | Line 3: | ||
{{#vardefine:p_{{{1|}}}_desc|{{#if:{{{bool|}}}|{{HoverLink|boolean{{#var:lang}}|A type that can only be true or false|boolean}},}} {{{pd|}}} {{#if:{{{bool|}}}{{{pd|}}}|{{#ifeq:{{{if|}}}|*|if|{{{if|}}}}}|{{ucfirst:{{#ifeq:{{{if|}}}|*|if|{{{if|}}}}}}}}} {{#vardefineecho:TRUE|{{LSL Const{{#var:lang}}|TRUE|integer|1}}}}{{#vardefine:FALSE|{{LSL Const{{#var:lang}}|FALSE|integer|0}}}}{{#if:{{{non-zero|}}}|{{Footnote|handle=non-zero|Any value that is not zero/{{#var:FALSE}} is treated the same as {{#var:TRUE}}.|Any value that is not zero/FALSE is treated the same as TRUE.}}}} {{#if:{{{td|}}}|{{{td|}}}|enables}}, {{#ifeq:{{{if|}}}|*|if|{{{if|}}}}} {{#var:FALSE}} {{#if:{{{fd|}}}|{{{fd|}}}|disables}}}} | {{#vardefine:p_{{{1|}}}_desc|{{#if:{{{bool|}}}|{{HoverLink|boolean{{#var:lang}}|A type that can only be true or false|boolean}},}} {{{pd|}}} {{#if:{{{bool|}}}{{{pd|}}}|{{#ifeq:{{{if|}}}|*|if|{{{if|}}}}}|{{ucfirst:{{#ifeq:{{{if|}}}|*|if|{{{if|}}}}}}}}} {{#vardefineecho:TRUE|{{LSL Const{{#var:lang}}|TRUE|integer|1}}}}{{#vardefine:FALSE|{{LSL Const{{#var:lang}}|FALSE|integer|0}}}}{{#if:{{{non-zero|}}}|{{Footnote|handle=non-zero|Any value that is not zero/{{#var:FALSE}} is treated the same as {{#var:TRUE}}.|Any value that is not zero/FALSE is treated the same as TRUE.}}}} {{#if:{{{td|}}}|{{{td|}}}|enables}}, {{#ifeq:{{{if|}}}|*|if|{{{if|}}}}} {{#var:FALSE}} {{#if:{{{fd|}}}|{{{fd|}}}|disables}}}} | ||
{{#vardefine:p_{{{1|}}}_hover|{{#if:{{{bool|}}}|boolean, | {{#vardefine:p_{{{1|}}}_hover|{{#if:{{{bool|}}}|boolean,}} {{#if:{{{ph|}}}|{{{ph|}}}|{{{pd|}}}}} {{#if:{{{bool|}}}{{{pd|}}}{{{ph|}}}|{{#ifeq:{{{if|}}}|*|if|{{{if|}}}}}|{{ucfirst:{{#ifeq:{{{if|}}}|*|if|{{{if|}}}}}}}}} TRUE {{#if:{{{th|}}}|{{{th|}}}|{{#if:{{{td|}}}|{{{td|}}}|enables}}}}, {{#ifeq:{{{if|}}}|*|if|{{{if|}}}}} FALSE {{#if:{{{fh|}}}|{{{fh|}}}|{{#if:{{{fd|}}}|{{{fd|}}}|disables}}}}}} | ||
}}<noinclude> | }}<noinclude> |
Revision as of 21:25, 2 November 2012
#var | value |
---|---|
p_bool_desc | boolean, 1 TRUE enables, FALSE disables |
p_bool_hover | boolean, 2 TRUE enables, FALSE disables |
#var | value |
---|---|
p_bool_desc | boolean, 1 TRUE 3, FALSE 5 |
p_bool_hover | boolean, 2 TRUE 4, FALSE 6 |
#var | value |
---|---|
p_bool_desc | boolean, 1 if TRUE[1] 3, if FALSE 5 |
p_bool_hover | boolean, 2 if TRUE 4, if FALSE 6 |
#var | value |
---|---|
p_bool_desc | If TRUE[1] 3, if FALSE 5 |
p_bool_hover | If TRUE 4, if FALSE 6 |