Revision 126426 of Template:JP Method

  • Revision slug: Template:JP_Method
  • Revision title: Template:JP Method
  • Revision id: 126426
  • Created:
  • Creator: kurt_cagle
  • Is current revision? No
  • Comment 20 words added

Revision Content

$name(buf = [];foreach(var param in $params){buf += [''+param.name+' as '+param.type+'']};paramList = web.html(""+string.join(buf,", ")+"");paramList ) as $type

Description
web.html(""+$description+"")
if ($params[0]["properties"] == null){buf = [];buf += ['
    '];foreach(var param in $params){buf += ['
  • '+param.name+'. '+param.description+'
  • ']};buf += ['
'];paramDescrs = web.html(""+string.join(buf,"")+""); paramDescrs} else { props = $params[0].properties;buf = [];buf += [''];foreach(var prop in props){buf += ['']};buf += ['
'+prop.name+''+prop.type+''+(prop.required?"Required":"Optional")+'
'];paramDescrs = web.html(""+string.join(buf,"")+""); paramDescrs }

Revision Source

<h3 id="{{if ($id!=null){$id} else {$name}}}" class="method"><a name="{{if ($id!=null) {$id} else {$name}}}" /><span class="method-name"><span class="script">$name</span></span>(<span class="script">buf = [];foreach(var param in $params){buf += ['<b class="param-name">'+param.name+'</b> as <i class="param-type">'+param.type+'</i>']};paramList = web.html(""+string.join(buf,", ")+"");paramList </span>) as <span class="method-type"><span class="script">$type</span></span></h3>
<div class="label"><strong>Description</strong></div>
<div class="description"><span class="script">web.html(""+$description+"")</span></div>
<div><span class="script">if ($params[0]["properties"] == null){buf = [];buf += ['<ul class="params-descr">'];foreach(var param in $params){buf += [' <li class="param-descr"><b class="param-descr-label">'+param.name+'</b>. <i class="param-descr-body">'+param.description+'</i></li>']};buf += ['</ul>'];paramDescrs = web.html(""+string.join(buf,"")+""); paramDescrs} else { props = $params[0].properties;buf = [];buf += ['<table class="property-descr">'];foreach(var prop in props){buf += ['<tr><td>'+prop.name+'</td><td>'+prop.type+'</td><td>'+(prop.required?"Required":"Optional")+'</td></tr>']};buf += ['</table>'];paramDescrs = web.html(""+string.join(buf,"")+""); paramDescrs } </span></div>