Template:subpagesSummary

  • Revision slug: Template:subpagesSummary
  • Revision title: Template:subpagesSummary
  • Revision id: 291533
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

<% var subPages = Page.subpages; subPages.sort(function (a, b) { return a.value.title.localeCompare(b.value.title); }) %> if (Page.subpages.length > 0) { %> TYPE : <%= typeof $1 %> <%
<% subPages.forEach(function (thePage) { %>
<%= thePage.value.title %>
<%- wiki.page(thePage.value.uri, "Summary") %>
<% }); %>
<% } /**
var type1 = ""; if ($1) type1 = typeof $1; foreach (var i in list.orderBy(map.keyValues(page.subpages), "key")) {
if ($1) switch (type1){ case "bool": i.value.title; break; case "list": var s = i.value.title; if (!list.contains($1, s)) s; else s; break; } else i.value.title;
;
web.html(wiki.text(i.value.path, "Summary"));
; }
; **/ %>

Revision Source

<%
var subPages = Page.subpages;
subPages.sort(function (a, b) {
    return a.value.title.localeCompare(b.value.title);
})
%>
if (Page.subpages.length > 0) {
%>
TYPE : <%= typeof $1 %>
<%
<dl>
<%
    subPages.forEach(function (thePage) {
%>
    <dt><a href="<%- thePage.value.uri %>"><code><%= thePage.value.title %></code></a></dt>
    <dd><%- wiki.page(thePage.value.uri, "Summary") %></dd>
<%
    });
%>
</dl>
<%
}
/**
<dl>
var type1 = "";
if ($1)
  type1 = typeof $1;
foreach (var i in list.orderBy(map.keyValues(page.subpages), "key")) {
  <dt><a href=(i.value.uri) rel="internal" style="white-space: nowrap;">
    if ($1)
      switch (type1){
        case "bool":
          i.value.title;
          break;
        case "list":
          var s = i.value.title;
          if (!list.contains($1, s))
            <code>s</code>;
          else
            s;
          break;
      }
    else
      <code>i.value.title</code>;
  </a></dt>;
  <dd>
    web.html(wiki.text(i.value.path, "Summary"));
  </dd>;
}
</dl>;
**/
%>
Revert to this revision