Difference between revisions of "Template:Function"

Jump to navigation Jump to search
288 bytes added ,  17:14, 30 January 2009
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:FunctionArgumentTest]] 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
}}
}}
}}


Anonymous user

Navigation menu