Revision 234193 of Template:DOMProp

  • Revision slug: Template:DOMProp
  • Revision title: Template:DOMProp
  • Revision id: 234193
  • Created:
  • Creator: lmorchard
  • Is current revision? No
  • Comment
Tags: 

Revision Content

<% var lang = env.locale; var dispName = $0; var destOldType = lang + '/DOM:element.' + $0; var destNewType = lang + '/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 { var targeturi = "/docs/new?slug=DOM/element." + $0; %><%=(dispName)%><% } %>

Revision Source

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

var destOldType = lang + '/DOM:element.' + $0;
var destNewType = lang + '/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 {
  var targeturi = "/docs/new?slug=DOM/element." + $0;
  %><code><a rel="internal" href="<%=(targeturi)%>" class="new"><%=(dispName)%></a></code><%
}
%>