Difference between revisions of "Template:Call"
Jump to navigation
Jump to search
(Created page with "Signature:<syntaxhighlight lang="cpp"> void wait(int time); </syntaxhighlight> Category:Call targets") |
|||
Line 1: | Line 1: | ||
Signature:<syntaxhighlight lang="cpp"> | Signature:<syntaxhighlight lang="cpp"> | ||
− | void | + | {{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}} |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Call targets]] | [[Category:Call targets]] | ||
+ | <noinclude> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "return": { | ||
+ | "aliases": [ | ||
+ | "2" | ||
+ | ], | ||
+ | "label": "Return type", | ||
+ | "example": "void, int, float", | ||
+ | "type": "string", | ||
+ | "autovalue": "", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "name": { | ||
+ | "aliases": [ | ||
+ | "3" | ||
+ | ], | ||
+ | "label": "Call name", | ||
+ | "type": "string", | ||
+ | "autovalue": "", | ||
+ | "required": true | ||
+ | }, | ||
+ | "args": { | ||
+ | "aliases": [ | ||
+ | "4" | ||
+ | ], | ||
+ | "label": "Argument list", | ||
+ | "example": "float posx, float posy, float posz", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "id": { | ||
+ | "aliases": [ | ||
+ | "1" | ||
+ | ], | ||
+ | "label": "Call ID", | ||
+ | "example": "0x0001", | ||
+ | "required": true | ||
+ | } | ||
+ | }, | ||
+ | "description": "Standard call target template", | ||
+ | "format": "inline", | ||
+ | "paramOrder": [ | ||
+ | "id", | ||
+ | "return", | ||
+ | "name", | ||
+ | "args" | ||
+ | ] | ||
+ | } | ||
+ | </templatedata> | ||
+ | </noinclude> |
Revision as of 08:28, 23 July 2019
Signature:
{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // 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 |