mozilla
Your Search Results

    Template:IRCLink

    <%
    // Inserts a link to a specific IRC channel, given its name.
    //
    // Parameters:
    //
    //  $0  IRC channel name (no "#")
    
    var channelURL = "";
    var channelName = $0.toLowerCase();
    var tooltip = "";
    var html = "";
    
    var lang = env.locale;
    
    channelURL = "irc://irc.mozilla.org/" + channelName;
    
    switch(lang) {
        default: // en-US and unspecified languages
            tooltip = "Connect to the #" + channelName + " channel on irc.mozilla.org. Requires an IRC client.";
            break;
    }
    
    html = "<a href='" + channelURL + "' title='" + tooltip + "'>#" + channelName + "</a>";
    %>
    <%-html%>
    Search for pages that use Template:IRCLink to see example use cases and how many pages use this macro.

    Document Tags and Contributors

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