Difference between revisions of "Template:JS Fcn"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 15: Line 15:
:<syntaxhighlight lang="javascript" enclose="div">
:<syntaxhighlight lang="javascript" enclose="div">
</syntaxhighlight>
</syntaxhighlight>
:;How it Works:
::; <tt>code segment</tt>: What it does


;Syntax:
;Syntax:

Revision as of 21:28, 25 August 2011

Template for a Javascript Function.

Usage
{{subst:JS_Fcn}}

Notepad.png

Note: Sample comes first, so that syntax and parameters (both reference info) can be adjacent to each other.


lj_functionName

...

Sample Usage

...

<syntaxhighlight lang="javascript" enclose="div">

</syntaxhighlight>

How it Works
code segment
What it does
Syntax
<syntaxhighlight lang="javascript" enclose="div">

lj_functionName('{option1}={value}&{option2}={value}&...'); lj_functionName(param, param, "string-param", ...); </syntaxhighlight>

Parameters

...

Parameter Description (default value in bold)
param descr