Diff for /wikisrc/templates/man.mdwn between versions 1.8 and 1.16

version 1.8, 2009/10/21 19:19:20 version 1.16, 2011/02/03 18:56:59
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_UNLESS name>
 <!--  ## Description
 [<TMPL_VAR name><TMPL_IF NAME="section">\(<TMPL_VAR section>\)</TMPL_IF>](http://netbsd.gw.com/cgi-bin/man-cgi?<TMPL_VAR name>+<TMPL_IF NAME="section"><TMPL_VAR section></TMPL_IF><TMPL_IF NAME="arch">.<TMPL_VAR arch></TMPL_IF>+<TMPL_IF NAME="collection"><TMPL_VAR collection></TMPL_ELSE>NetBSD-current</TMPL_IF>)  
 -->  Use this template to create a man page link. The template can use four parameters:
 <TMPL_VAR name>    
 <TMPL_VAR section>    * *name* - This required parameter is the name of the manpage.
 <TMPL_VAR arch>    * *section* - This recommended parameter is the manpage section.
 <TMPL_VAR collection>  * *arch* - This optional parameter is the machine architecture.
 <TMPL_ELSE>  * *collection* - This optional parameter refers to the NetBSD version and defaults to "NetBSD-current".
 Use this template to create a manpage link. The template can use four parameters:  
 <ul>  ## Examples
 <li>`name` - This required parameter is the name of the manpage.</li>  
 <li>`section` - This recommended parameter is the manpage section.</li>  Link to [[!template id=man name="ls"]] man page:
 <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>          \[[!template id=man name="ls"]]
 </ul>  
 </TMPL_IF>  Link to [[!template id=man name="ls" section="1"]] man page, with section:
   
           \[[!template id=man name="ls" section="1"]]
   
   Link to [[!template id=man name="ls" section="1" arch="i386"]] man page, specifying section and architecture:
   
           \[[!template id=man name="ls" section="1" arch="i386"]]
   
   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"]]
   </TMPL_UNLESS>

Removed from v.1.8  
changed lines
  Added in v.1.16


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