mozilla
Your Search Results

    Template:XBLMeth

    <%
    // Inserts a link to an XBL method's documentation, with proper formatting.
    //
    //  $0 - Method name
    
    var lang = env.locale;
    
    var refName = "XBL 1.0 Reference";
    var elemName = "DOM Interfaces";
    
    switch(lang) {
      case 'fr':
        refName = "Référence XBL 1.0";
        elemName = "Éléments";
        break;
      case 'pl':
        refName = "Dokumentacja XBL 1.0";
        elemName = "Interfejsy DOM";
        break;
    }
    var destOldType = "/" + lang + '/docs/XBL:' + refName + ':' + elemName;
    var destNewType = "/" + lang + '/docs/XBL/' + refName + '/' + elemName;
    var url = "";
    
    if (wiki.pageExists(destNewType)) {
        url = destNewType;
    } else if (wiki.pageExists(destOldType)) {
        url = destOldType;
    } else {
        url = destNewType;
    }
    
        url = web.spacesToUnderscores(url + "#" + $0);
    %>
    <code><a href="<%=url%>"><%=$0%>()</a></code>
    Search for pages that use Template:XBLMeth to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Tags: 
    Contributors to this page: Ptak82, Sheppy, lmorchard
    Last updated by: Sheppy,