Difference between revisions of "Template:Call"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Signature: | + | Signature: |
− | {{# | + | {{#tag:syntaxhighlight| |
− | |||
{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}} | {{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}} | ||
+ | {{#ifeq:{{{act|}}}|true| | ||
+ | |||
+ | //or in a context of another script | ||
+ | {{#if:{{{return|}}}|{{{return}}}|void}} scriptName.{{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}|}}| | ||
+ | lang=cpp | ||
+ | }} | ||
+ | |||
[[Category:Call targets]] | [[Category:Call targets]] | ||
<noinclude> | <noinclude> | ||
Line 43: | Line 49: | ||
"example": "0x0001", | "example": "0x0001", | ||
"required": true | "required": true | ||
+ | }, | ||
+ | "act": { | ||
+ | "aliases": [ | ||
+ | "5" | ||
+ | ], | ||
+ | "label": "ACT usage", | ||
+ | "example": "true, false, empty", | ||
+ | "type": "boolean", | ||
+ | "suggested": true | ||
} | } | ||
}, | }, | ||
Line 51: | Line 66: | ||
"return", | "return", | ||
"name", | "name", | ||
− | "args" | + | "args", |
+ | "act" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 09:14, 23 July 2019
Signature:
void {{{name}}}(); // id: {{{id}}}
Standard call target template
Parameter | Description | Type | Status | |
---|---|---|---|---|
Call ID | id 1 | no description
| Unknown | required |
Return type | return 2 | no description
| String | suggested |
Call name | name 3 | no description
| String | required |
Argument list | args 4 | no description
| String | suggested |
ACT usage | act 5 | no description
| Boolean | suggested |