Difference between revisions of "Template:Function"
Jump to navigation
Jump to search
I'm too tired to do this right now; reverting.
imported>DragoonWraith |
imported>DragoonWraith (I'm too tired to do this right now; reverting.) |
||
Line 108: | Line 108: | ||
'''Syntax:''' | '''Syntax:''' | ||
<!-- return value: | <!-- return value: | ||
--> | --> {{ #ifeq: {{{returnType|void}}} | void | (void) |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!-- | ||
return type (short, float, base object, ref, something else?): | |||
-->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}}) }} }}<!-- | |||
optional reference type (actor, activator, door, etc.): | optional reference type (actor, activator, door, etc.): | ||
Line 120: | Line 123: | ||
FOR ALIAS: return value: | FOR ALIAS: return value: | ||
-->{{ #if: {{{alias|}}} |<br/> | -->{{ #if: {{{alias|}}} |<br/>{{ #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?): | ||
-->{{ # | -->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}}) }} }}<!-- | ||
optional reference type (actor, activator, door, etc.): | optional reference type (actor, activator, door, etc.): | ||
Line 140: | Line 138: | ||
FOR ALTERNATE: | FOR ALTERNATE: | ||
-->{{ #if: {{{altName|}}} | | -->{{ #if: {{{altName|}}} | | ||
{{ #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?): | ||
-->{{ # | -->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}}) }} }}<!-- | ||
optional reference type (actor, activator, door, etc.): | optional reference type (actor, activator, door, etc.): | ||
Line 160: | Line 155: | ||
FOR ALTERNATE ALIAS: return value: | FOR ALTERNATE ALIAS: return value: | ||
-->{{ #if: {{{altAlias|}}} |<br/> | -->{{ #if: {{{altAlias|}}} |<br/>{{ #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?): | ||
-->{{ # | -->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}}) }} }}<!-- | ||
optional reference type (actor, activator, door, etc.): | optional reference type (actor, activator, door, etc.): | ||
Line 180: | Line 170: | ||
FOR 2nd ALTERNATE: | FOR 2nd ALTERNATE: | ||
-->{{ #if: {{{alt2Name|}}} | | -->{{ #if: {{{alt2Name|}}} | | ||
{{ #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?): | ||
-->{{ # | -->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}}) }} }}<!-- | ||
optional reference type (actor, activator, door, etc.): | optional reference type (actor, activator, door, etc.): | ||
Line 200: | Line 187: | ||
FOR 2nd ALTERNATE ALIAS: return value: | FOR 2nd ALTERNATE ALIAS: return value: | ||
-->{{ #if: {{{alt2Alias|}}} |<br/> | -->{{ #if: {{{alt2Alias|}}} |<br/>{{ #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?): | ||
-->{{ # | -->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}}) }} }}<!-- | ||
optional reference type (actor, activator, door, etc.): | optional reference type (actor, activator, door, etc.): |