mozilla

Revision 92476 of Template:bitly

  • Revision slug: Template:bitly
  • Revision title: Template:bitly
  • Revision id: 92476
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment page created, 37 words added
Tags: 

Revision Content

/* returns a short URL for the specified page */
if ($0) {
var apiKey = "R_9a5688c38fa6773f347abf72a921a7df";
var login = "sheppy";
var page = wiki.getpage($0);
var url = web.uriencode(page.uri);
web.link(url);
} else {
  web.text("Missing parameter: page path");
}
 
%>

Revision Source

<pre class="script">
/* returns a short URL for the specified page */
if ($0) {
var apiKey = "R_9a5688c38fa6773f347abf72a921a7df";
var login = "sheppy";
var page = wiki.getpage($0);
var url = web.uriencode(page.uri);
web.link(url);
} else {
  web.text("Missing parameter: page path");
}
<pre> </pre>
%>