Template:Srcdir: Difference between revisions
Jump to navigation
Jump to search
m Protected "Template:Srcdir" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) |
No edit summary |
||
| Line 1: | Line 1: | ||
[http://{{codeserver}}/viewvc/code/trunk/{{{1}}} {{{1}}}]{{srcasterisk}}<noinclude> | [http://{{codeserver}}/viewvc/code/trunk/{{{1}}} {{{1}}}]{{srcasterisk}}<noinclude>{{colorbox|#ffffbb| | ||
''This template is used to provide links to ASCEND source code.'' | ''This template is used to provide links to ASCEND source code.'' | ||
| Line 7: | Line 7: | ||
{{Help/Src}} | {{Help/Src}} | ||
</noinclude> | }}</noinclude><includeonly>[[Category:Pages with code links]]</includeonly> | ||
<includeonly>[[Category:Pages with code links]]</includeonly> | |||
Revision as of 02:40, 28 September 2014
This template is used to provide links to ASCEND source code.
- Usage: {{src|relative/path/within/trunk.c}}
- Example: {{src|models/johnpye/testlog10.a4c}}
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.