Template:tbsource

<%
// Insert a link to a file in the Thunderbird source repository.
//
//  $0 - File to link to
//  $1 - (OPTIONAL) text for the link
//
// If $1 isn't provided, the link itself is the link text

var url = "http://mxr.mozilla.org/comm-central/source/" + $0;
var text = ($1 || url);
%>
<a href="<%=url%>"><%=text%></a>
Search for pages that use Template:tbsource to see example use cases and how many pages use this macro.

Document Tags and Contributors

Tags:
Contributors to this page: Wjjohnst, trevorh, Sheppy, jenzed
Last updated by: trevorh,