en:code:template
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | en:code:template [2021/02/13 11:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | This is a template for code objects. | ||
+ | ====== ObjectName ====== | ||
+ | Object description. | ||
+ | ===== Functions ===== | ||
+ | |||
+ | ==== functionName ==== | ||
+ | Function description. | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | ObjectName.functionName(argument1, | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - argument1 - (type) argument description | ||
+ | - argument2 - (type) argument description | ||
+ | |||
+ | === Returns === | ||
+ | * (type) return description | ||
+ | |||
+ | === Exceptions === | ||
+ | * (exceptionType) exception description | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | ObjectName.functionName(125, | ||
+ | </ | ||
+ | |||
+ | === See also === | ||
+ | * link | ||
+ | |||
+ | === Notes === | ||
+ | Notes. | ||
+ | |||
+ | ===== Methods ===== | ||
+ | |||
+ | ==== methodName ==== | ||
+ | Method description. | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | myObject.methodName(argument1, | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - argument1 - (type) argument description | ||
+ | - argument2 - (type) argument description | ||
+ | |||
+ | === Returns === | ||
+ | * (type) return description | ||
+ | |||
+ | === Exceptions === | ||
+ | * (exceptionType) exception description | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | myObject.methodName(125, | ||
+ | </ | ||
+ | |||
+ | === See also === | ||
+ | * link | ||
+ | |||
+ | === Notes === | ||
+ | Notes. | ||
+ | |||
+ | ===== Enumerations ===== | ||
+ | |||
+ | ==== enumerationName ==== | ||
+ | Enumeration description. | ||
+ | |||
+ | === Values === | ||
+ | - value1: value description | ||
+ | - value2: value description | ||
+ | - value3: value description | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | ObjectName.functionName(ObjectName.enumerationValue); | ||
+ | </ | ||
+ | |||
+ | === See also === | ||
+ | * link | ||
+ | |||
+ | === Notes === | ||
+ | Notes. | ||
+ | |||
+ | ===== Variables ===== | ||
+ | |||
+ | ==== variableName ==== | ||
+ | Variable description. | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | ObjectName.variableName = 42; //Optional description | ||
+ | Script.print(ObjectName.variableName); | ||
+ | </ | ||
+ | |||
+ | === See also === | ||
+ | * link | ||
+ | |||
+ | === Notes === | ||
+ | Notes. | ||
+ | |||
+ | ===== Events ===== | ||
+ | |||
+ | ==== eventName ==== | ||
+ | Event description. | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | myObject.eventName = function(argument1, | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - argument1 - (type) argument description | ||
+ | - argument2 - (type) argument description | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | myObject.eventName = function(argument1, | ||
+ | //Event action | ||
+ | }; //Optional description | ||
+ | </ | ||
+ | |||
+ | === See also === | ||
+ | * link | ||
+ | |||
+ | === Notes === | ||
+ | Notes. | ||
+ | |||
+ | ===== Attributes ===== | ||
+ | |||
+ | ==== attributeName ==== | ||
+ | Attribute description. | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | myObject.attributeName = 42; //Optional description | ||
+ | Script.print(myObject.attributeName); | ||
+ | </ | ||
+ | |||
+ | === See also === | ||
+ | * link | ||
+ | |||
+ | === Notes === | ||
+ | Notes. |