Your Search Results

    Template:bitly

    <%
    
    /* returns a short URL for the specified page */
    if ($0) {
        var key = "R_5234581b80aee75f4a47bc21760d5b44";
        var user = "wikiwednesday";
        var page = wiki.getpage($0);
        var url = web.uriencode(page.uri);
        var short = web.text("http://api.bitly.com/v3/shorten/?longUrl=" + url + "&format=txt&apiKey=" + key + "&login=" + user);
        web.link(short);
    } else {
      web.text("Missing parameter: page path");
    }
    
    %>
    Search for pages that use Template:bitly to see example use cases and how many pages use this macro.

    Document Tags and Contributors

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