mozilla
Your Search Results

    Test_2

    There were scripting errors on this page. While those are being addressed by site editors, you can view partial content below.

    mediawiki.external(site.uri + mediawiki.localurl("en", $0, 'action=edit') + ' edit ' + $1) mediawiki.external(site.uri + mediawiki.localurl("fr", $0, 'action=edit') + ' Éditer ' + $1) mediawiki.external(site.uri + mediawiki.localurl("ja", $0, 'action=edit') + ' edit ' + $1) mediawiki.external(site.uri + mediawiki.localurl("es", $0, 'action=edit') + ' Editar ' + $1) hi me

    {{mediawiki.internal(':en:XUL:Method:' + $0 + '|' + (string.trim(($1 || '')) !== '' ? web.html($1) : web.html($0)), "pt")}} (EN)

     
     - 1 - Interface Name 
     - 2 - Source Location relative to @topsrc@/mozilla/ 
     - 3 - FROZEN/unfrozen/UNDER_REVIEW/EXPERIMENTAL 
     - 4 - Since [date/milestone] (in unfrozen case, last-changed-in) 
     - 5 - Scriptable? (yes/no) 
    

    See MDC:Writing interface reference documentation for an elaborate guide on documenting interfaces on MDC.

    web.html($0) is defined in wiki.template('tbsource', mediawiki.args([$1])). It is wiki.template(mediawiki.path('InterfaceStatus:Scriptable_' + $4, "en")) and wiki.template(mediawiki.path('InterfaceStatus:' + $2, "en"), mediawiki.args([$3])).

     
    /* input parameters: topic tag, [optional] template to format the entry, such as HTMLElement */ 
    var u = uri.parts(Page.uri); 
    var lang = string.tolower(u.path[0]); 
    if (string.contains(lang, "project")) { 
      lang = string.substr(lang, 8); 
    } 
    /* fall back to page.language on a user page */ 
    else if (string.StartsWith(lang, "user:")) { 
      lang = page.language; 
    } 
    var p1 = wiki.gettag($0); 
    var links = []; 
    foreach(var p in p1.pages) { 
      if (p.language == lang) { 
        var t = p.tags; 
        links += [{title: p.title, path: p.path, tags: t}]; 
      } 
    } 
    links = list.sort(links, "title"); 
    foreach(var firstLetter in ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]) { 
      var matches = []; 
      foreach(var l in links) { 
        if (string.startswith(string.toLower(l.title), firstLetter)) { 
          matches += [l]; 
        } 
      } 
      if (#matches) { 
        

    web.text(firstLetter)

      ; foreach(var l in matches) {
    • if ($1) { wiki.template($1, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline("5"); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline("4"); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); }
    • }
    ; } } %>

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

    Description
    web.html(""+$description+"")
    buf = [];buf += ['
      '];foreach(var param in $params){buf += ['
    • '+param.name+'. '+param.description+'
    • ']};buf += ['
    '];paramDescrs = web.html(""+string.join(buf,"")+""); paramDescrs
    if ($params[0]["properties"] != null){props = $params[0].properties;buf = [];buf += ['

    Properties of '+$params[0].name+'

    '];foreach(var prop in props){buf += ['']};buf += ['
    Property NameProperty TypeRequired?Default ValueDescription
    '+prop.name+''+prop.type+''+(prop.required?"Required":"Optional")+''+(prop.required?"n/a":prop.default)+''+prop.description+'
    '];paramDescrs = web.html(""+string.join(buf,"")+""); paramDescrs}

    {{ taggedsubpages }}

    {{ compatibilityTableAggregatorNoCache }}

    var ttl = 3600;	// 60 minute TTL
    var lang = page.language;
    var p = page.path;
    if ($0) {
      p = $0;
    }
    var cacheKey = lang + '-compatibilityTableAggregator-' + p;
    webcache.fetch(cacheKey) || webcache.store(cacheKey, template.compatibilityTableAggregatorNoCache(p), ttl);
    

    Document Tags and Contributors

    Contributors to this page: ethertank
    Last updated by: ethertank,