mozilla
Your Search Results

    Template:cssmediadef

    <%
    // $0 is the name of the definition (property or data type), without < > or ''
    // $1 is a string containing comma-separated values. TBD: l10n + link to something useful
    // $2 is additional description
    
    var s_url_anchor = mdn.localString({
        "en-US": "Media_groups",
        "fr"   : "Groupes_de_m.C3.A9dias",
        "ja"   : "Media_groups",
        "pl"   : "Grupy_medi.C3.B3w",
        "pt-PT": "Grupos_de_m.C3.ADdia"
    });
    
    var path = mdn.localString({
        "ja" : "Web/CSS",
        "en-US": "CSS"
    }); // "en-US" is wild card
    
    var s_desc = '<a href="/' + env.locale + '/docs/' + path + '/@media#' + s_url_anchor + '"><code>' + $1 + '</code></a>';
    
    if ($2) s_desc += $2;
    
    var result = '<span id="media-' + $0 + '">' + s_desc + '</span>';
    
    %><%- result %>
    Search for pages that use Template:cssmediadef to see example use cases and how many pages use this macro.

    Document Tags and Contributors

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