Difference between revisions of "Template:Function"

Jump to navigation Jump to search
2,518 bytes removed ,  13:05, 13 August 2010
no edit summary
imported>DragoonWraith
(I'm too tired to do this right now; reverting.)
imported>DragoonWraith
Line 107: Line 107:
<!-- syntax starts here: -->
<!-- syntax starts here: -->
'''Syntax:'''
'''Syntax:'''
<!-- return value:
<!--
--> {{ #ifeq: {{{returnType|void}}} | void | (void)&nbsp; |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--


return type (short, float, base object, ref, something else?):
Main:
-->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}})&nbsp; }} }}<!--
-->{{FunctionSyntax | name = {{{name|{{PAGENAME}}}}} | returnType = {{{returnType|void}}} | returnVal = {{{returnVal|}}} | referenceType = {{{referenceType|}}} | referenceOpt = {{{referenceOpt|}}} | arguments = {{{arguments|}}} }}<!--


optional reference type (actor, activator, door, etc.):
Alias:
-->{{ #if: {{{referenceType|}}} | {{ #if: {{{referenceOpt|}}} | ''{{{referenceType}}}.'' | {{{referenceType}}}. }} |<!-- no Reference Type -->}}<!--
-->{{ #if: {{{alias|}}} | <br/>{{FunctionSyntax | name = {{{alias}}} | returnType = {{{returnType|void}}} | returnVal = {{{returnVal|}}} | referenceType = {{{referenceType|}}} | referenceOpt = {{{referenceOpt|}}} | arguments = {{{arguments|}}} }} | <!--no alias--> }}<!--


the actual function:
Alternate:
-->{{{name|{{PAGENAME}}}}}<!--
-->{{ #if: {{{alt|}}} | <br/><br/>{{FunctionSyntax | name = {{{alt}}} | returnType = {{{returnType|void}}} | returnVal = {{{returnVal|}}} | referenceType = {{{referenceType|}}} | referenceOpt = {{{referenceOpt|}}} | arguments = {{{altArgs|}}} }}<!--


arguments
Alternate Alias:
-->{{ #if: {{{arguments|}}} | {{{arguments}}} |<!-- no Arguments -->}}<!--
-->{{ #if: {{{altAlias|}}} | <br/>{{FunctionSyntax | name = {{{altAlias}}} | returnType = {{{returnType|void}}} | returnVal = {{{returnVal|}}} | referenceType = {{{referenceType|}}} | referenceOpt = {{{referenceOpt|}}} | arguments = {{{alt2Args|}}} }} | <!--no alt alias--> }} | <!--no alt--> }}<!--


FOR ALIAS: return value:
Second Alternate:
-->{{ #if: {{{alias|}}} |<br/>{{ #ifeq: {{{returnType|void}}} | void | (void)&nbsp; |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!--
-->{{ #if: {{{alt2|}}} | <br/><br/>{{FunctionSyntax | name = {{{alt2}}} | returnType = {{{returnType|void}}} | returnVal = {{{returnVal|}}} | referenceType = {{{referenceType|}}} | referenceOpt = {{{referenceOpt|}}} | arguments = {{{alt2Args|}}} }}<!--


return type (short, float, base object, ref, something else?):
Second Alternate Alias:
-->{{ #ifeq: {{{returnType|missing}}} | missing | '''missing return type!''' | {{{returnType}}})&nbsp; }} }}<!--
-->{{ #if: {{{alt2Alias|}}} | <br/>{{FunctionSyntax | name = {{{altAlias}}} | returnType = {{{returnType|void}}} | returnVal = {{{returnVal|}}} | referenceType = {{{referenceType|}}} | referenceOpt = {{{referenceOpt|}}} | arguments = {{{alt2Args|}}} }} | <!--no alt alias--> }} | <!--no alt--> }}<!--
 
optional reference type (actor, activator, door, etc.):
-->{{ #if: {{{referenceType|}}} | {{ #if: {{{referenceOpt|}}} | ''{{{referenceType}}}.'' | {{{referenceType}}}. }} |<!-- no Reference Type -->}}<!--
 
alias:
-->{{{alias}}}<!--
 
arguments
-->{{ #if: {{{arguments|}}} | {{{arguments}}} |<!-- no Arguments -->}}|<!-- no Alias -->}}<!--
 
FOR ALTERNATE:
-->{{ #if: {{{altName|}}} |&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.):
-->{{ #if: {{{referenceType|}}} | {{ #if: {{{referenceOpt|}}} | ''{{{referenceType}}}.'' | {{{referenceType}}}. }} |<!-- no Reference Type -->}}<!--
 
the actual function:
-->{{{altName}}}<!--
 
arguments
-->{{ #if: {{{altArgs|}}} | {{{altArgs}}} |<!-- no Arguments -->}}<!--
 
FOR ALTERNATE ALIAS: return value:
-->{{ #if: {{{altAlias|}}} |<br/>{{ #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.):
-->{{ #if: {{{referenceType|}}} | {{ #if: {{{referenceOpt|}}} | ''{{{referenceType}}}.'' | {{{referenceType}}}. }} |<!-- no Reference Type -->}}<!--
 
alias:
-->{{{altAlias}}}<!--
 
arguments
-->{{ #if: {{{altArgs|}}} | {{{altArgs}}} |<!-- no Arguments -->}}|<!-- no Alias -->}}|<!-- no Alternate -->}}<!--
 
FOR 2nd ALTERNATE:
-->{{ #if: {{{alt2Name|}}} |&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.):
-->{{ #if: {{{referenceType|}}} | {{ #if: {{{referenceOpt|}}} | ''{{{referenceType}}}.'' | {{{referenceType}}}. }} |<!-- no Reference Type -->}}<!--
 
the actual function:
-->{{{alt2Name}}}<!--
 
arguments
-->{{ #if: {{{alt2Args|}}} | {{{alt2Args}}} |<!-- no Arguments -->}}<!--
 
FOR 2nd ALTERNATE ALIAS: return value:
-->{{ #if: {{{alt2Alias|}}} |<br/>{{ #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.):
-->{{ #if: {{{referenceType|}}} | {{ #if: {{{referenceOpt|}}} | ''{{{referenceType}}}.'' | {{{referenceType}}}. }} |<!-- no Reference Type -->}}<!--
 
alias:
-->{{{alt2Alias}}}<!--
 
arguments
-->{{ #if: {{{alt2Args|}}} | {{{alt2Args}}} |<!-- no Arguments -->}}|<!-- no Alias -->}}|<!-- no 2nd Alternate -->}}<!--


short summary of the function: -->
short summary of the function: -->

Navigation menu