Annotation of wikisrc/templates/man.mdwn, revision 1.22

1.20      plunky      1: [[!templatebody <<ENDBODY
                      2: [<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">)
                      3: ENDBODY]]
1.22    ! schmonz     4: 
1.21      plunky      5: ## Description
                      6: 
1.14      jym         7: Use this template to create a man page link. The template can use four parameters:
                      8: 
1.18      wiki        9: * `name` - This required parameter is the name of the manpage.
                     10: * `section` - This recommended parameter is the manpage section.
                     11: * `arch` - This optional parameter is the machine architecture.
                     12: * `collection` - This optional parameter refers to the NetBSD version and defaults to "NetBSD-current".
1.14      jym        13: 
                     14: ## Examples
                     15: 
                     16: Link to [[!template id=man name="ls"]] man page:
                     17: 
                     18:         \[[!template id=man name="ls"]]
                     19: 
                     20: Link to [[!template id=man name="ls" section="1"]] man page, with section:
                     21: 
                     22:         \[[!template id=man name="ls" section="1"]]
                     23: 
                     24: Link to [[!template id=man name="ls" section="1" arch="i386"]] man page, specifying section and architecture:
                     25: 
                     26:         \[[!template id=man name="ls" section="1" arch="i386"]]
                     27: 
                     28: Link to [[!template id=man name="ls" section="1" arch="i386" collection="NetBSD-5.0"]] man page, specifying section, architecture and collection:
                     29: 
                     30:         \[[!template id=man name="ls" section="1" arch="i386" collection="NetBSD-5.0"]]

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