Difference between revisions of "Template:Function"

Jump to navigation Jump to search
248 bytes added ,  00:56, 6 August 2010
no edit summary
imported>DragoonWraith
imported>DragoonWraith
Line 12: Line 12:
   ''alias''            = An abbreviated version of the function name that can be
   ''alias''            = An abbreviated version of the function name that can be
                       used instead of the long name.
                       used instead of the long name.
  ''altName''          = the name of an alternate version of a function (e.g. the "C" Magic Effect functions)
  ''altAlias''          = the alias of the alternate function.
   ''returnVal ''        = what the function returns.
   ''returnVal ''        = what the function returns.
   ''returnType''        = the type of the returned value.
   ''returnType''        = the type of the returned value.
Line 19: Line 21:
   ''arguments''        = List of arguments specified using the {{[[:Template:FunctionArgument|FunctionArgument]]}} template,
   ''arguments''        = List of arguments specified using the {{[[:Template:FunctionArgument|FunctionArgument]]}} template,
                       or any other wiki syntax.
                       or any other wiki syntax.
  ''altArgs''          = List of arguments for the alternate version of the function.
   ''example''          = optionally, the function used as part of a script to serve as an example
   ''example''          = optionally, the function used as part of a script to serve as an example
   ''CategoryList''      = the list of categories to which the page belongs
   ''CategoryList''      = the list of categories to which the page belongs
Line 100: Line 103:
-->{{ #if: {{{arguments|}}} | {{{arguments}}} |<!-- no Arguments -->}}<!--
-->{{ #if: {{{arguments|}}} | {{{arguments}}} |<!-- no Arguments -->}}<!--


<!-- FOR ALIAS: return value:
FOR ALIAS: return value:
-->{{ #if: {{{alias|}}} | &nbsp;
--> {{ #if: {{{alias|}}} | {{ #ifeq: {{{returnType|void}}} | void | (void) |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--
 
{{ #ifeq: {{{returnType|void}}} | void | (void) |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--


return type (short, float, base object, ref, something else?):
return type (short, float, base object, ref, something else?):

Navigation menu