Diff for /wikisrc/templates/man.mdwn between versions 1.1 and 1.23

version 1.1, 2009/10/21 18:11:35 version 1.23, 2020/09/08 21:31:17
Line 1 Line 1
 <a href="http://netbsd.gw.com/cgi-bin/man-cgi?<TMPL_VAR name>+<TMPL_VAR section><TMPL_IF NAME="arch">.<TMPL_VAR arch></TMPL_IF>+<TMPL_IF NAME="collection"><TMPL_VAR collection></TMPL_ELSE>NetBSD-current</TMPL_IF>"><TMPL_VAR name><TMPL_IF NAME="section">(<TMPL_VAR section>)</TMPL_IF></a>  [[!templatebody <<ENDBODY
   [<TMPL_VAR NAME="name"><TMPL_IF
       NAME="section">(<TMPL_VAR
       NAME="section">)</TMPL_IF>](//man.NetBSD.org/<TMPL_IF
       NAME="collection"><TMPL_VAR ESCAPE=URL
       NAME="collection">/</TMPL_IF><TMPL_IF
       NAME="arch"><TMPL_VAR ESCAPE=URL
       NAME="arch">/</TMPL_IF><TMPL_VAR ESCAPE=URL
       NAME="name"><TMPL_IF
       NAME="section">.<TMPL_VAR ESCAPE=URL NAME="section"></TMPL_IF>)
   ENDBODY]]
   
   ## Description
   
   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.
   * `section` - This recommended parameter is the manpage section.
   * `arch` - This optional parameter is the machine architecture.
   * `collection` - This optional parameter refers to the NetBSD version (e.g. "NetBSD-10.0").
   
   ## Examples
   
   Link to [[!template id=man name="ls"]] man page:
   
           \[[!template id=man name="ls"]]
   
   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"]]

Removed from v.1.1  
changed lines
  Added in v.1.23


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