<% /* * NOTE: This template should only be used by another template, do not use directly in content * Basically any template that ends in xref should use this * * Inserts an appropriatly styled cross reference link. Usually, you should use the xref macro. * This macro lets you specify multiple URLs to try, for cases where the target might be in * one of a number of places. * * $0 - URL list; URLs are separated by the "|" character. Specify the most likely URL first. * $1 - Link text * $2 - Show tooltip summary (optional - Default is True except when the URL contains an anchor) * This should only be set to false for content areas where the summary is consistantly poor as a short term solution */ // Get the page summary var summary = ""; var url = ""; var urllist = $0.split("|"); var count = urllist.length; var page; for (var i=0; i<%- $1 %>