mozilla

Revision 295905 of Template:DOMProp

  • Revision slug: Template:DOMProp
  • Revision title: Template:DOMProp
  • Revision id: 295905
  • Created:
  • Creator: trevorh
  • Is current revision? Yes
  • Comment
Tags: 

Revision Content

<% var lang = env.locale; var dispName = $0; var destOldType = lang + '/docs/DOM:element.' + $0; var destNewType = lang + '/docs/DOM/element.' + $0; if (wiki.pageExists(destNewType)) { %><%-(web.link(wiki.uri(destNewType), dispName))%><% } else if (wiki.pageExists(destOldType)) { %><%-(web.link(wiki.uri(destOldType), dispName))%><% } else { %><%-(web.link(wiki.uri(destNewType), dispName))%><% } %>

Revision Source

<%
var lang = env.locale;
var dispName = $0;

var destOldType = lang + '/docs/DOM:element.' + $0;
var destNewType = lang + '/docs/DOM/element.' + $0;

if (wiki.pageExists(destNewType)) {
  %><code><%-(web.link(wiki.uri(destNewType), dispName))%></code><%
} else if (wiki.pageExists(destOldType)) {
  %><code><%-(web.link(wiki.uri(destOldType), dispName))%></code><%
} else {
  %><code><%-(web.link(wiki.uri(destNewType), dispName))%></code><%
}
%>