--- wikisrc/templates/man.mdwn 2009/10/21 19:26:58 1.11 +++ wikisrc/templates/man.mdwn 2015/06/19 20:24:11 1.21 @@ -1,11 +1,29 @@ - -[\(\)](http://netbsd.gw.com/cgi-bin/man-cgi?+.+NetBSD-current) - -Use this template to create a manpage 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 and defaults to "NetBSD-current".
  • -
-
+[[!templatebody <()](http://netbsd.gw.com/cgi-bin/man-cgi?+.+) +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 and defaults to "NetBSD-current". + +## 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"]]