Difference between revisions of "Template:JS Fcn"
From AgileApps Support Wiki
imported>Aeric (Created page with "===lj_functionName=== ... ;Syntax: :<syntaxhighlight lang="javascript" enclose="div"> lj_functionName('{option1}={value}&{option2}={value}&...'); lj_functionName(param, param, "…") |
imported>Aeric |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
Template for a Javascript Function. | |||
;Usage: | |||
:<tt><nowiki>{{subst:JS_Fcn}}</nowiki></tt> | |||
{{Note|Sample comes first, so that syntax and parameters (both reference info) can be adjacent to each other.}} | |||
---- | |||
</noinclude> | |||
===lj_functionName=== | ===lj_functionName=== | ||
... | ... | ||
;Sample Usage: | |||
... | |||
:<syntaxhighlight lang="javascript" enclose="div"> | |||
</syntaxhighlight> | |||
:;How it Works: | |||
::; <tt>code(segment).doSomething(...</tt>: What it does | |||
;Syntax: | ;Syntax: | ||
Line 6: | Line 22: | ||
lj_functionName('{option1}={value}&{option2}={value}&...'); | lj_functionName('{option1}={value}&{option2}={value}&...'); | ||
lj_functionName(param, param, "string-param", ...); | lj_functionName(param, param, "string-param", ...); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 22: | Line 32: | ||
| param || descr | | param || descr | ||
|} | |} | ||
Latest revision as of 21:29, 25 August 2011
Template for a Javascript Function.
- Usage
- {{subst:JS_Fcn}}
lj_functionName
...
- Sample Usage
...
- <syntaxhighlight lang="javascript" enclose="div">
</syntaxhighlight>
- How it Works
-
- code(segment).doSomething(...
- 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