Template:Srcbranch: Difference between revisions
Jump to navigation
Jump to search
m Protected "Template:Srcbranch" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) |
No edit summary |
||
| Line 1: | Line 1: | ||
[http://{{codeserver}}/viewvc/code/branches/{{{1}}}/{{{2}}}?view=markup <font color=orange>{{{1}}}:</font>{{{2}}}] | [http://{{codeserver}}/viewvc/code/branches/{{{1}}}/{{{2}}}?view=markup <font color=orange>{{{1}}}:</font>{{{2}}}]<noinclude> | ||
''Provide a link to source code in a branch of our repository.'' | |||
Usage: <tt><nowiki>{{branchname|relative/path/to/code.c}}</nowiki></tt> | |||
Example: <tt><nowiki>{{grivan|models/thermodynamics.a4l}}</nowiki></tt> | |||
</noinclude> | |||
{{Help/Src}} | |||
Revision as of 02:29, 22 June 2011
Provide a link to source code in a branch of our repository.
Usage: {{branchname|relative/path/to/code.c}}
Example: {{grivan|models/thermodynamics.a4l}}
See also
- Template:Src if you want to link to source code in the trunk repository
- Template:Srcdir if you want to link to a directory, not a code file, in the trunk repository.
- Template:Srcbranch if you want to link to code in a named branch (not trunk)
- Template:Srcbranchdir if you want to link to a directory in a named branch (not trunk)
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.