Difference between revisions of "Template:Function"
Jump to navigation
Jump to search
removed (opt)arg#'s, added some comments to the code
imported>DragoonWraith |
imported>DragoonWraith (removed (opt)arg#'s, added some comments to the code) |
||
Line 64: | Line 64: | ||
link to the CS Wiki page | link to the CS Wiki page | ||
-->{{ #if: {{{CSWikiPage|}}} | Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/{{{CSWikiPage}}} {{{CSWikiPage}}}].|}}<!-- | -->{{ #if: {{{CSWikiPage|}}} | Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/{{{CSWikiPage}}} {{{CSWikiPage}}}].|<!-- no CSwiki page -->}}<!-- | ||
line about the origin of the function (GECK1, FOSE0001) | line about the origin of the function (GECK1, FOSE0001) | ||
Line 82: | Line 82: | ||
<!-- return value: | <!-- return value: | ||
--> {{ #ifeq: {{{returnType}}} | void | |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!-- | --> {{ #ifeq: {{{returnType}}} | void |<!-- no Return Value -->|({{ #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.): | ||
-->{{ #if: {{{referenceType|}}} |''{{{referenceType}}}.''|}}<!-- | -->{{ #if: {{{referenceType|}}} |''{{{referenceType}}}.''|<!-- no Reference Type -->}}<!-- | ||
the actual function: | the actual function: | ||
Line 94: | Line 94: | ||
arguments | arguments | ||
-->{{ #if: {{{arguments|}}} | {{{arguments}}} | | -->{{ #if: {{{arguments|}}} | {{{arguments}}} |<!-- no Arguments -->}}<!-- | ||
--> | |||
<!-- FOR ALIAS: return value: | <!-- FOR ALIAS: return value: | ||
-->{{ #if: {{{shortname|}}} | | -->{{ #if: {{{shortname|}}} | | ||
Or: | Or: | ||
{{ #ifeq: {{{returnType}}} | void | |({{ #if: {{{returnVal|}}} | {{{returnVal}}}<nowiki>:</nowiki> |}}<!-- | {{ #ifeq: {{{returnType}}} | void |<!-- no Return Value -->|({{ #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.): | ||
-->{{ #if: {{{referenceType|}}} |''{{{referenceType}}}.''|}}<!-- | -->{{ #if: {{{referenceType|}}} |''{{{referenceType}}}.''|<!-- no Reference Type -->}}<!-- | ||
shortname: | shortname: | ||
Line 135: | Line 111: | ||
arguments | arguments | ||
-->{{ #if: {{{arguments|}}} | {{{arguments}}} | | -->{{ #if: {{{arguments|}}} | {{{arguments}}} |<!-- no Arguments -->}} |<!-- no Alias -->}}<!-- | ||
--> | |||
--> | |||
example: --> | example: --> | ||
{{ #if: {{{example|}}} | == Example == | {{ #if: {{{example|}}} | == Example == | ||
{{{example}}} |}}<!-- | {{{example}}} |<!-- no Example -->}}<!-- | ||
categorization code (needs something clever): -->{{{CategoryList|}}}</includeonly> | categorization code (needs something clever): -->{{{CategoryList|}}}</includeonly> |