Template:Src: Difference between revisions

From ASCEND
Jump to navigation Jump to search
m Protected "Template:Src" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite))
No edit summary
Line 1: Line 1:
[{{srctrunk}}{{{1}}}?view=markup {{{1}}}]{{srcasterisk}}<noinclude>
[{{srctrunk}}{{{1}}}?view=markup {{{1}}}]{{srcasterisk}}<includeonly>[[Category:Pages with code links]]</includeonly><noinclude>{{colorbox|#ffffbb|


''This template is used to provide links to specific code files via ViewVC. This template links to the 'trunk' of our repository. For other branches, see related templates below.''
This template is used to provide links to specific code files via ViewVC. This template links to the 'trunk' of our repository. For other branches, see related templates below.


* Usage: <tt><nowiki>{{src|relative/path/within/trunk.c}}</nowiki></tt>
* Usage: <tt><nowiki>{{src|relative/path/within/trunk.c}}</nowiki></tt>
Line 7: Line 7:


{{Help/Src}}
{{Help/Src}}
</noinclude>
 
<includeonly>[[Category:Pages with code links]]</includeonly>
}}</noinclude>

Revision as of 02:40, 28 September 2014

{{{1}}}

This template is used to provide links to specific code files via ViewVC. This template links to the 'trunk' of our repository. For other branches, see related templates below.

  • Usage: {{src|relative/path/within/trunk.c}}
  • Example: {{src|models/johnpye/testlog10.a4c}}

See also

This template makes our wiki independent of where the ViewVC server is currently located, since that address can be changed centrally in a single template (either Template:Codeserver or Template:Srctrunk)

See Category:Pages with code links to see (and check) all the resulting links, because they sometimes get messed up. See Category:Pages with code branch links to see (and check) all the resulting links, because they sometimes get messed up.