Difference between revisions of "Template:Function"
Jump to navigation
Jump to search
Beefed up the given example to make use of more optional parameters. The original example was confusing when compared to the sandbox example and didn't provide a full 'copy and paste'-able template.
imported>Qazaaq (adding a syntax help link) |
imported>Omzy (Beefed up the given example to make use of more optional parameters. The original example was confusing when compared to the sandbox example and didn't provide a full 'copy and paste'-able template.) |
||
Line 26: | Line 26: | ||
<pre>{{Function | <pre>{{Function | ||
|name = Test | |name = Test | ||
|origin = GECK1 | |origin = GECK1 | ||
| | |CSWikiPage = Test | ||
| | |alias = tst | ||
| | |returnType = void | ||
|referenceType = [Actor, Activator] | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = Count | |||
|Type = int | |||
|Value = 1, 2, 3 | |||
}} | }} | ||
{{FunctionArgument | |||
|Name = Target | |||
|Type = ref | |||
|Optional = y | |||
}} | |||
|summary = Used to test actor and activator references to assure that they are testable. | |||
|example = Player.Test 3 | |||
ShackDoor.Test 1 Molerat01 | |||
}}</pre> | }}</pre> | ||
Line 43: | Line 51: | ||
{{Function | {{Function | ||
|name = Test | |name = Test | ||
|origin = GECK1 | |origin = GECK1 | ||
|alias = tst | |CSWikiPage = Test | ||
| | |alias = tst | ||
| | |returnType = void | ||
|arguments = {{FunctionArgument | |referenceType = [Actor, Activator] | ||
|arguments = | |||
{{FunctionArgument | |||
}}{{FunctionArgument | |Name = Count | ||
|Type = int | |||
|Value = 1, 2, 3 | |||
}} | |||
{{FunctionArgument | |||
|Name = Target | |||
|Type = ref | |||
|Optional = y | |||
}} | }} | ||
|summary = Used to test actor and activator references to assure that they are testable. | |||
|example = Player.Test 3 | |||
ShackDoor.Test 1 Molerat01 | |||
}} | }} | ||