Difference between revisions of "Template:Function"
Jump to navigation
Jump to search
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}}}) |}}<!-- | -->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}}) |}} }}<!-- | ||
optional reference type (actor, activator, door, etc.): | optional reference type (actor, activator, door, etc.): |