mozilla
Your Search Results

    Template:subpagesSummary

    <%
    /* The list of template's arguments is used to know which subpages title should not be marked as code */
    var notCodeElements = arguments;
       
    var pages = page.subpagesExpand('','1');
    var str = '';
    if (pages.length) {
        str += '<dl>';
        pages.forEach(function(item) {
            str += '<dt><a href="' + item.url + '">';
            if(notCodeElements.indexOf(item.title) < 0) {
                str += '<code>' + kuma.htmlEscape(item.title) + '</code>';
            } else {
                str += kuma.htmlEscape(item.title);
            }
            str += '</a></dt>';
            str += '<dd>' + item.summary + '</dd>';
        });
        str += '</dl>';
    }
    %>
    <%- str %>
    Search for pages that use Template:subpagesSummary to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Contributors to this page: Sheppy, teoli, Sevenspade, trevorh, Jeremie, IgorKitsa, madarche
    Last updated by: Sheppy,