Diff for /wikisrc/templates/man.mdwn between versions 1.14 and 1.17

version 1.14, 2009/11/08 23:00:30 version 1.17, 2011/02/03 20:26:21
Line 1 Line 1
 <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>  [<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_UNLESS name>
 ## Description  ## Description
   
 Use this template to create a man page link. The template can use four parameters:  Use this template to create a man page link. The template can use four parameters:
   
 * *name* - This required parameter is the name of the manpage.</li>  * *name* - This required parameter is the name of the manpage.
 * *section* - This recommended parameter is the manpage section.</li>  * *section* - This recommended parameter is the manpage section.
 * *arch* - This optional parameter is the machine architecture.</li>  * *arch* - This optional parameter is the machine architecture.
 * *collection* - This optional parameter refers to the NetBSD version and defaults to "NetBSD-current".</li>  * *collection* - This optional parameter refers to the NetBSD version and defaults to "NetBSD-current".
   
 ## Examples  ## Examples
   
Line 25  Link to [[!template id=man name="ls" sec Line 25  Link to [[!template id=man name="ls" sec
 Link to [[!template id=man name="ls" section="1" arch="i386" collection="NetBSD-5.0"]] man page, specifying section, architecture and collection:  Link to [[!template id=man name="ls" section="1" arch="i386" collection="NetBSD-5.0"]] man page, specifying section, architecture and collection:
   
         \[[!template id=man name="ls" section="1" arch="i386" collection="NetBSD-5.0"]]          \[[!template id=man name="ls" section="1" arch="i386" collection="NetBSD-5.0"]]
 </TMPL_IF>  </TMPL_UNLESS>

Removed from v.1.14  
changed lines
  Added in v.1.17


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