mozilla
Your Search Results

    Template:SVGElement

    <%
    //    Outputs a link to an SVG element's reference page.
    //    
    //    Parameters:
    //        $0  SVG element name
    
    var slug = {
        'en-US': "Element"
    };
    
    var URL = "/" + env.locale + "/docs/Web/SVG/" + mdn.localString(slug) + "/" + $0;
    
    // Gather the page summary
    
    var term = $0;
    var page = wiki.getPage(URL);
    var summary = "";
    if (page && page.summary) {
        summary = mdn.escapeQuotes(page.summary);
    } else {
        switch(env.locale) {
            default:
                summary = "This page hasn't been written yet. Please consider contributing to MDN by writing it!";
                break;
        }
    }
    
    %>
    <a href="<%- URL %>" <%- wiki.pageExists(URL) ? '' : ' class="new"' %> title="<%-summary%>"><code>&lt;<%= term %>&gt;</code></a>
    Search for pages that use Template:SVGElement to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Tags: 
    Contributors to this page: Sheppy, lmorchard, fscholz, teoli, ethertank, Jeremie
    Last updated by: fscholz,