Difference between revisions of "Template:Function"

Jump to navigation Jump to search
327 bytes added ,  23:53, 12 August 2010
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: {{{returnVal|nothing}}} | nothing | | {{{returnVal}}} }}{{ #if: {{{returnType|}}} | {{ #if: {{{returnVal|}}} | : | }}{{{returnType}}} | void }})&nbsp;<!--
--> {{ #ifeq: {{{returnType|void}}} | void | (void)&nbsp; |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--
 
return type (short, float, base object, ref, something else?):
-->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}})&nbsp; }} }}<!--


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)&nbsp; |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--
 
return value:
--> ({{ #ifeq: {{{returnVal|nothing}}} | nothing | | {{{returnVal}}} }}<!--


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


optional reference type (actor, activator, door, etc.):
optional reference type (actor, activator, door, etc.):
Line 140: Line 138:


FOR ALTERNATE:
FOR ALTERNATE:
-->{{ #if: {{{altName|}}} |&nbsp;<!--
-->{{ #if: {{{altName|}}} |&nbsp;


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


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


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)&nbsp; |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--
 
return value:
--> ({{ #ifeq: {{{returnVal|nothing}}} | nothing | | {{{returnVal}}} }}<!--


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


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|}}} |&nbsp;<!--
-->{{ #if: {{{alt2Name|}}} |&nbsp;


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


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


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)&nbsp; |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--
 
return value:
--> ({{ #ifeq: {{{returnVal|nothing}}} | nothing | | {{{returnVal}}} }}<!--


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


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

Navigation menu