MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla
Your Search Results

    Template:interfaceattribute

    <%
    /* creates a link to a attribute in an interface */
    /* parameters: interface name then attribute name */
    var lang = env.locale;
    
    var destNewType = lang + '/docs/XPCOM_Interface_Reference/' + $0;
    var destOldType = lang + '/docs/' + $0;
    
    /* default to the page exists from the dekiwiki age */
    var destLink = web.link(wiki.uri(destNewType) + '#' + $1, $0 + '.' + $1);
    
    /* check $0#$1 exists */
    if(wiki.pageExists(destNewType)) { /* the page exists from the dekiwiki age */
    } else if(wiki.pageExists(destOldType)) {
        destLink = web.link(wiki.uri(destOldType) + '#' + $1, $0 + '.' + $1);
    }
    %>
    <%- destLink %>
    Search for pages that use Template:interfaceattribute to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Tags: 
    Contributors to this page: trevorh
    Last updated by: trevorh,