mozilla
Your Search Results

    Template:npapi-page

    <%
    // Creates a link to the NPAPI page with the given name
    //
    //  $0 - page name
    
        var lang = env.locale;
        
        var langName = "Gecko Plugin API Reference";
        
        switch(lang) {
            case 'pl':
                langName = "Dokumentacja wtyczek Gecko";
                break;
            case 'de':
                langName = "Gecko Plugin API Referenz";
                break;
            case 'fr':
                langName = "Documentation API Greffons Gecko";
                break;
        }
    
        var destOldType = "/" + lang + '/docs/' + langName + ':' + $0;
        var destNewType = "/" + lang + '/docs/' + langName + '/' + $0;
        var url = "";
    
        if (wiki.pageExists(destNewType)) {
            url = destNewType;
        } else if (wiki.pageExists(destOldType)) {
            url = destOldType;
        } else {
            url = destNewType;
        }
        url = web.spacesToUnderscores(url);
    %>
    <a href="<%=url%>"><%=$0%></a>
    Search for pages that use Template:npapi-page to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Tags: 
    Contributors to this page: Demos, Sheppy, Bedi, Nickolay, fscholz
    Last updated by: Sheppy,