Template:DOMProp

<%
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><%
}
%>
Search for pages that use Template:DOMProp to see example use cases and how many pages use this macro.

Document Tags and Contributors

Tags:
Contributors to this page: Sheppy, lmorchard, Cuimingda, fscholz, Sevenspade, trevorh, chukito, Dria
Last updated by: trevorh,