Template:Disabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with " <noinclude>This template describes the '''disabled''' parameter of the automacro eventMacros.</noinclude> ; disabled :* '''disabled''' is an optiona...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This template describes the '''disabled''' [[EventMacro#Parameters|parameter]] of the automacro eventMacros.</noinclude> | <noinclude>This template describes the '''disabled''' [[EventMacro#Parameters|parameter]] of the automacro eventMacros.</noinclude> | ||
; disabled | ; disabled <[[boolean]]> | ||
:* '''disabled''' is an optional parameter. | :* '''disabled''' is an optional parameter. | ||
:* '''disabled''' defines if the automacro is active of not. | :* '''disabled''' defines if the automacro is active of not. | ||
Line 6: | Line 6: | ||
:* When it's value is 1 the automacro won't activate ever, when it's 0 it can activate normally. | :* When it's value is 1 the automacro won't activate ever, when it's 0 it can activate normally. | ||
automacro | automacro MyAuto1 { | ||
<automacro conditions and parameters (and only them)> | <automacro conditions and parameters (and only them)> | ||
disabled 1 | disabled 1 | ||
call | call myMacro1 | ||
} | } | ||
macro | macro myMacro1 { | ||
<macro instructions (and only them, as this is regular macro)> | <macro instructions (and only them, as this is regular macro)> | ||
log This macro will never be called by | log This macro will never be called by MyAuto1 | ||
} | } | ||
Line 19: | Line 19: | ||
<automacro conditions and parameters (and only them)> | <automacro conditions and parameters (and only them)> | ||
disabled 0 | disabled 0 | ||
call | call myMacro2 | ||
} | } | ||
macro myMacro2 { | macro myMacro2 { |
Latest revision as of 20:35, 18 October 2020
This template describes the disabled parameter of the automacro eventMacros.
- disabled <boolean>
-
- disabled is an optional parameter.
- disabled defines if the automacro is active of not.
- If not used in the automacro the default value will be used, which is: 0.
- When it's value is 1 the automacro won't activate ever, when it's 0 it can activate normally.
automacro MyAuto1 { <automacro conditions and parameters (and only them)> disabled 1 call myMacro1 } macro myMacro1 { <macro instructions (and only them, as this is regular macro)> log This macro will never be called by MyAuto1 } automacro MyAuto2 { <automacro conditions and parameters (and only them)> disabled 0 call myMacro2 } macro myMacro2 { <macro instructions (and only them, as this is regular macro)> log This macro will be called by MyAuto2 normally }