Difference between revisions of "Template:Function"
Jump to navigation
Jump to search
Update example to use {{FunctionArgument}}
imported>SnakeChomp m |
imported>SnakeChomp (Update example to use {{FunctionArgument}}) |
||
Line 16: | Line 16: | ||
returnType = the type of the returned value | returnType = the type of the returned value | ||
''referenceType'' = if appropriate, the type of reference that the function may be called on with the dot syntax | ''referenceType'' = if appropriate, the type of reference that the function may be called on with the dot syntax | ||
''arguments'' = List of arguments specified using the [[Template: | ''arguments'' = List of arguments specified using the [[Template:FunctionArgument]] template, or anything else really. | ||
''arg0'' = the first '''mandatory''' argument | ''arg0'' = the first '''mandatory''' argument | ||
(''arg*'' parameters are optional, not all functions have mandatory arguments) | (''arg*'' parameters are optional, not all functions have mandatory arguments) | ||
Line 37: | Line 37: | ||
|summary = Does stuff | |summary = Does stuff | ||
|returnType = void | |returnType = void | ||
|arguments = {{FunctionArgument | |||
|Name = Count | |||
|Type = int | |||
}}{{FunctionArgument | |||
|Name = Target | |||
|Type = ref | |||
|Optional = y | |||
}} | |||
}}</pre> | }}</pre> | ||
Line 47: | Line 55: | ||
|summary = Does stuff | |summary = Does stuff | ||
|returnType = void | |returnType = void | ||
|arguments = {{FunctionArgument | |||
|Name = Count | |||
|Type = int | |||
}}{{FunctionArgument | |||
|Name = Target | |||
|Type = ref | |||
|Optional = y | |||
}} | |||
}} | }} | ||