Template:ReleaseChannelInfo

  • Revision slug: Template:ReleaseChannelInfo
  • Revision title: Template:ReleaseChannelInfo
  • Revision id: 44706
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 35 words added, 10 words removed

Revision Content

/* parameters: Firefox version, Gecko version, target release date, channel name */
/* get the page language */

var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project") || string.contains(lang, "Project")) {
  lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
 lang = page.language;
}

web.text("Firefox " + $0 + ", based on Gecko " + $1 + ", will ship in " + $2 + ". This article provides information about the changes in this release that will affect developers. Nightly builds of what will become Firefox " + $0 + " are " + web.link("ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-" + $3, "currently available") + " on the " + string.ToUpperFirst($3) + " channel.");

%>

Revision Source

<pre class="script">
/* parameters: Firefox version, Gecko version, target release date, channel name */
/* get the page language */

var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project") || string.contains(lang, "Project")) {
  lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
 lang = page.language;
}

web.text("Firefox " + $0 + ", based on Gecko " + $1 + ", will ship in " + $2 + ". This article provides information about the changes in this release that will affect developers. Nightly builds of what will become Firefox " + $0 + " are " + web.link("ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-" + $3, "currently available") + " on the " + string.ToUpperFirst($3) + " channel.");

%>
Revert to this revision