mozilla

Revision 286447 of Template:AMInterface

  • Revision slug: Template:AMInterface
  • Revision title: Template:AMInterface
  • Revision id: 286447
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment
Tags: 

Revision Content

<% // Inserts a link to the documentation for the specified Add-on Manager interface // // $0 - interface to link to // $1 - (OPTIONAL) method within the interface to link to var lang = env.locale; var dest = "/" + lang + '/docs/Addons/Add-on_Manager/' + $0; var title = $0; var target = ""; if ($1) { target = '#' + $1 + '()'; title = $0 + '.' + $1 + '()'; } %> <%=title%>

Revision Source

<%
// Inserts a link to the documentation for the specified Add-on Manager interface
//
// $0 - interface to link to
// $1 - (OPTIONAL) method within the interface to link to

var lang = env.locale;

var dest = "/" + lang + '/docs/Addons/Add-on_Manager/' + $0;
var title = $0;
var target = "";

if ($1) {
  target = '#' + $1 + '()';
  title = $0 + '.' + $1 + '()';
}
%>
<code><a href="<%=dest%>" title="<%=title%>"><%=title%></a></code>