Template:XULMeth

<%
var lang = env.locale;

var anch = "m-" + $0;
var dispApi = ($2 || $0) + $1;

var methodName = mdn.localString({
  "en-US": "Method",
  "de": "Methoden",
  "fr": "M├ęthodes",
  "pl": "Metoda"
});

var destOldType = lang + '/docs/XUL:' + methodName + ':' + $0;
var destNewType = lang + '/docs/Mozilla/Tech/XUL/' + methodName + '/' + $0;

if (wiki.pageExists(destNewType)) {
  %><span id="<%=(anch)%>"><code><%-(web.link(wiki.uri(destNewType), dispApi))%></code></span><%
} else if (wiki.pageExists(destOldType)) {
  %><span id="<%=(anch)%>"><code><%-(web.link(wiki.uri(destOldType), dispApi))%></code></span><%
} else {
  %><span id="<%=(anch)%>"><code><%-(web.link(wiki.uri(destNewType), dispApi))%></code></span><%
}
%>
Search for pages that use Template:XULMeth to see example use cases and how many pages use this macro.

Document Tags and Contributors

Tags: 
Contributors to this page: Sheppy, ethertank, trevorh, lmorchard, fscholz, chukito, Marsf, Taken, Fredchat, Okome, Dria
Last updated by: Sheppy,