Template:Source: Difference between revisions

Jump to navigation Jump to search
Link to the mozilla-central tree in MXR (most of the few pages using this want that), doc this.
(link to mxr instead, as mdc:Template:Source now does)
(Link to the mozilla-central tree in MXR (most of the few pages using this want that), doc this.)
Line 1: Line 1:
<noinclude>
<noinclude>
Link to source code in http://mxr.mozilla.org, similar to how [[mdc:Template:Source]] works.
Link to source code in <tt>mozilla-central</tt> [[Mercurial]] tree in http://mxr.mozilla.org, similar to how [[mdc:Template:Source]] works.
''Note,'' there is also the older <tt>[http://mxr.mozilla.org/mozilla/ mozilla]</tt> CVS tree.


== Usage ==
== Usage ==
First parameter is the path within mozilla-central;
First parameter is the path within the mozilla tree;
second optional parameter gives a name to it.
second optional parameter gives a name to it.


Line 11: Line 12:
<nowiki>{{source|browser/Makefile.in|the browser/ Makefile.in}}</nowiki>
<nowiki>{{source|browser/Makefile.in|the browser/ Makefile.in}}</nowiki>
: produces {{source|browser/Makefile.in|the browser/ Makefile.in}}
: produces {{source|browser/Makefile.in|the browser/ Makefile.in}}
</noinclude><code>[http://mxr.mozilla.org/mozilla/source/{{{1}}} {{{2|{{{1}}}}}}]</code>
</noinclude><code>[http://mxr.mozilla.org/mozilla-central/source/{{{1}}} {{{2|{{{1}}}}}}]</code>
Confirmed users
396

edits

Navigation menu