Difference between revisions of "Template:Function"

Jump to navigation Jump to search
40 bytes added ,  17:19, 30 January 2009
Omit return information if returnType is void
imported>SnakeChomp
(Update example to use {{FunctionArgument}})
imported>SnakeChomp
(Omit return information if returnType is void)
Line 88: Line 88:


<!-- return value:
<!-- return value:
--> ({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--
-->{{ #ifeq: {{{returnType}}} | void | | ({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--


return type (short, float, base object, ref, something else?):
return type (short, float, base object, ref, something else?):
-->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}})&nbsp; |}}<!--
-->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}})&nbsp; |}} }}<!--


optional reference type (actor, activator, door, etc.):
optional reference type (actor, activator, door, etc.):
Anonymous user

Navigation menu