Difference between revisions of "Template:WW file"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
| '''Location:''' || {{{2}}}
 
| '''Location:''' || {{{2}}}
 
|- valign="top"
 
|- valign="top"
| '''Source code:''' || {{#if: {{{NotInSVN|}}}|Not in SVN ({{{NotInSVN}}})|• [[viewvc:system/trunk{{{2}}}{{{1}}}|HEAD]]
+
| '''Source code:''' || {{#if: {{{NotInSVN|}}}|Not in SVN ({{{NotInSVN}}})|• [[viewvc:system/trunk/{{{2}}}{{{1}}}|HEAD]]
• [[viewvc:system/tags/rel-2-4-9-1{{{2}}}{{{1}}}|rel-2.4.9.1]] }}
+
• [[viewvc:system/tags/rel-2-4-9-1/{{{2}}}{{{1}}}|rel-2.4.9.1]] }}
 
|}
 
|}
 
</div>
 
</div>
Line 15: Line 15:
   
 
* FILENAME is the name of the file, including extension.
 
* FILENAME is the name of the file, including extension.
* PATH is the path to the file including leading & trailing slashes.
+
* PATH is the path to the file including trailing slashes, but not leading slashes
 
* The NotInSVN argument is optional and should only be used if the file is not in SVN. REASON is the reason that is displayed in the infobox. Note that 'NotInSVN' is case sensitive!
 
* The NotInSVN argument is optional and should only be used if the file is not in SVN. REASON is the reason that is displayed in the infobox. Note that 'NotInSVN' is case sensitive!
   
Line 22: Line 22:
 
== Examples ==
 
== Examples ==
   
<nowiki>{{WW file|global.conf.dist|/webwork2/conf/}}</nowiki>
+
<nowiki>{{WW file|global.conf.dist|webwork2/conf/}}</nowiki>
{{WW file|global.conf.dist|/webwork2/conf/|}}
+
{{WW file|global.conf.dist|webwork2/conf/|}}
   
 
[[Category:Info templates|{{PAGENAME}}]]
 
[[Category:Info templates|{{PAGENAME}}]]

Revision as of 12:45, 17 April 2011

WeBWorK File: {{{1}}}
Location: {{{2}}}
Source code: • [[viewvc:system/trunk/{{{2}}}{{{1}}}|HEAD]]

• [[viewvc:system/tags/rel-2-4-9-1/{{{2}}}{{{1}}}|rel-2.4.9.1]]

Usage

{{WW file|FILENAME|PATH|NotInSVN=REASON}}
  • FILENAME is the name of the file, including extension.
  • PATH is the path to the file including trailing slashes, but not leading slashes
  • The NotInSVN argument is optional and should only be used if the file is not in SVN. REASON is the reason that is displayed in the infobox. Note that 'NotInSVN' is case sensitive!

Be careful not to include spaces on either side of the PATH/FILE parameters.

Examples

{{WW file|global.conf.dist|webwork2/conf/}}
WeBWorK File: global.conf.dist
Location: webwork2/conf/
Source code: HEAD

rel-2.4.9.1