Difference between revisions of "Template:Call"

From Final Fantasy XII Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Signature:<syntaxhighlight lang="cpp">
+
Signature:
 +
{{#tag:syntaxhighlight|
 
{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}
 
{{#if:{{{return|}}}|{{{return}}}|void}} {{{name}}}({{#if:{{{args|}}}|{{{args}}}|}}); // id: {{{id}}}
</syntaxhighlight>
+
{{#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 42: 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 50: 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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Call IDid 1

no description

Example
0x0001
Unknownrequired
Return typereturn 2

no description

Example
void, int, float
Auto value
Stringsuggested
Call namename 3

no description

Auto value
Stringrequired
Argument listargs 4

no description

Example
float posx, float posy, float posz
Stringsuggested
ACT usageact 5

no description

Example
true, false, empty
Booleansuggested