Template:a11yEventRef

  • Revision slug: Template:a11yEventRef
  • Revision title: Template:a11yEventRef
  • Revision id: 90439
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment 1 words added, 1 words removed

Revision Content

/* get the page language */
/* Used in: en/Accessibility/AT-APIs/AT-SPI/Events */

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.link(site.uri(lang + '/Accessibility/AT-APIs/Gecko/Events#' + $0), $0);
%>

Revision Source

<pre class="script">
/* get the page language */
/* Used in: en/Accessibility/AT-APIs/AT-SPI/Events */

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.link(site.uri(lang + '/Accessibility/AT-APIs/Gecko/Events#' + $0), $0);
%>
Revert to this revision