Template:MozillaOnly

by 2 contributors:
<%
// Presents a banner marking a page as covering a topic specific to Mozilla. Intended
// for use on API pages in particular, where the API is intentionally designed for
// Mozilla products.
//
// Parameters:
//
//  $0  Explanatory text (optional)
//  $1  Product name (optional)
//

var mozillaOnly;
var message;
var product = $1 || "Mozilla";

var lang = env.locale;

switch(lang) {
    "de":
        mozillaOnly = product + " spezifische API";
        message = $0 || "Diese API ist nur in Gecko-basierter Software, einschlie├člich Firefox und Firefox OS, verf├╝gbar.";
        break;

    default:
        mozillaOnly = product + "-specific API";
        message = $0 || "This API is only available in Gecko-based software, including Firefox and Firefox OS.";
        break;
}
%>
<div class="bannerWrapper">
<div class="mozOnlyBanner">
    <dl>
        <dt><%-mozillaOnly%></dt>
        <dd><%-message%></dd>
    </dl>
</div>
</div>
Search for pages that use Template:MozillaOnly to see example use cases and how many pages use this macro.

Document Tags and Contributors

Contributors to this page: Sebastianz, Sheppy
Last updated by: Sebastianz,