mozilla
Your Search Results

    Template:Interwiki

    <%
    var path = $1;
    var title = $2 || path;
    
    var lang = env.locale.substr(0, 2);
    var prefix = $0;
    
    switch(prefix) {
        case 'wikipedia':
            %><a title="<%=title%>" href="<%-'http://' + lang + '.wikipedia.org/wiki/' + path%>"><%-title%></a><%
            break;
        case 'wikimo':
            %><a class="wikimo" title="<%=title%>" href="<%-'http://wiki.mozilla.org/' + path%>"><%-title%></a><%
            break;
        default:
            %>Unknown prefix: <%- prefix %>.<%
            break;
    }%>
    Search for pages that use Template:Interwiki to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Contributors to this page: Sheppy, Potappo, ethertank, openjck, trevorh
    Last updated by: trevorh,