Difference between revisions of "Template:Asfunction"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (removed extraneous braces)
m (No parameters defaults to "None" in the function summary now... no param1 anyway.)
Line 3: Line 3:
 
<div class="dascript" style="font-family:monospace; background-color:#F9F9F9; border: 1px dashed #2F6FAB; line-height: 1.1em; padding: 1em;">
 
<div class="dascript" style="font-family:monospace; background-color:#F9F9F9; border: 1px dashed #2F6FAB; line-height: 1.1em; padding: 1em;">
 
{{{name}}}(
 
{{{name}}}(
:{{#if:{{{param1name|}}}|{{{param1name}}}|}}{{#if:{{{param2name|}}}|,
+
:{{#if:{{{param1name|}}}|{{{param1name}}}|<b><i>None</i></b>}}{{#if:{{{param2name|}}}|,
 
:{{{param2name}}}|}}{{#if:{{{param3name|}}}|,
 
:{{{param2name}}}|}}{{#if:{{{param3name|}}}|,
 
:{{{param3name}}}|}}{{#if:{{{param4name|}}}|,
 
:{{{param3name}}}|}}{{#if:{{{param4name|}}}|,

Revision as of 06:16, 16 December 2009

{{{brief}}}

{{{name}}}(

None

);

Parameters:

Returns:
{{{returndesc}}}



Usage:

{{asfunction
|name = GetValue
|brief = Returns the value with the specified attribute name from the engine
|param1name = a_sAttributeName
|param1desc = The hierarchical attribute name, the meaning of which is defined by the game engine.
.
.
.
|returndesc = The specified value from the game engine, dependent on the specified attribute name.
}}

This template is for ActionScript functions used in the GUI, similar to JavaScript. A standard asfunction page will have a number of other headers below this template where more detailed and free-form information will be added by editors.

Suggested standard headers include:

Description

Known issues

Examples

See also

With others added when and where needed.