File:  [NetBSD Developer Wiki] / wikisrc / templates / man.mdwn
Revision 1.13: download - view: text, annotated - select for diffs
Wed Oct 21 20:12:11 2009 UTC (4 years, 6 months ago) by plunky
Branches: MAIN
CVS tags: HEAD
use ESCAPE=URL where appropriate, some NAME=".." and
DEFAULT="..." instead of IF/ELSE

<TMPL_IF NAME="name">[<TMPL_VAR NAME="name"><TMPL_IF NAME="section">\(<TMPL_VAR NAME="section">\)</TMPL_IF>](http://netbsd.gw.com/cgi-bin/man-cgi?<TMPL_VAR ESCAPE=URL NAME="name">+<TMPL_IF NAME="section"><TMPL_VAR ESCAPE=URL NAME="section"></TMPL_IF><TMPL_IF NAME="arch">.<TMPL_VAR ESCAPE=URL NAME="arch"></TMPL_IF>+<TMPL_VAR ESCAPE=URL NAME="collection" DEFAULT="NetBSD-current">)<TMPL_ELSE>
Use this template to create a manpage link. The template can use four parameters:
<ul>
<li>`name` - This required parameter is the name of the manpage.</li>
<li>`section` - This recommended parameter is the manpage section.</li>
<li>`arch` - This optional parameter is the machine architecture.</li>
<li>`collection` - This optional parameter refers to the NetBSD version and defaults to "NetBSD-current".</li>
</ul>
</TMPL_IF>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb