We want to help developers like you. Tell us about how you work: http://qsurvey.mozilla.com/s3/Developer-Audience-Survey-V2/?s=mdn

<%
var lang = env.locale;
var anch = "a-" + $0;
var dispApi = $0;
if ($1) {
  dispApi = $1;
}

var attrName = mdn.localString({
  "en-US": "Attribute",
  "fr": "Attributs",
  "pl": "Atrybut"
});

var destOldType = lang + '/docs/XUL:' + attrName + ':' + $0;
var destNewType = lang + '/docs/XUL/' + attrName + '/' + $0;

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

Document Tags and Contributors

 Last updated by: ethertank,