version 1.19, 2015/05/20 06:17:25
|
version 1.23, 2020/09/08 21:31:17
|
Line 1
|
Line 1
|
[[!templatebody <<ENDBODY |
[[!templatebody <<ENDBODY |
[<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> |
[<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 |
## 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: |
Line 7 Use this template to create a man page l
|
Line 17 Use this template to create a man page l
|
* `name` - This required parameter is the name of the manpage. |
* `name` - This required parameter is the name of the manpage. |
* `section` - This recommended parameter is the manpage section. |
* `section` - This recommended parameter is the manpage section. |
* `arch` - This optional parameter is the machine architecture. |
* `arch` - This optional parameter is the machine architecture. |
* `collection` - This optional parameter refers to the NetBSD version and defaults to "NetBSD-current". |
* `collection` - This optional parameter refers to the NetBSD version (e.g. "NetBSD-10.0"). |
|
|
## Examples |
## Examples |
|
|
Line 26 Link to [[!template id=man name="ls" sec
|
Line 36 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_UNLESS> |
|
ENDBODY]] |
|