version 1.1, 2009/10/21 19:35:33
|
version 1.6, 2015/06/19 20:26:29
|
Line 1
|
Line 1
|
<TMPL_IF NAME="name"> |
[[!templatebody <<ENDBODY |
[<TMPL_VAR category><TMPL_VAR name>](http://pkgsrc.se/<TMPL_VAR category>/<TMPL_VAR name>) |
[<TMPL_VAR NAME="category">/<TMPL_VAR NAME="name">](http://pkgsrc.se/<TMPL_VAR ESCAPE=URL NAME="category">/<TMPL_VAR ESCAPE=URL NAME="name">) |
<TMPL_ELSE> |
ENDBODY]] |
Use this template to create a package link. The template uses two parameters: |
## Description |
<ul> |
|
<li>`name` - The name of the package.</li> |
Use this template to create a link to a [pkgsrc](http://www.pkgsrc.org)'s package. The template uses two parameters: |
<li>`category` - The package category.</li> |
|
</ul> |
* *category* - This required parameter is the category of the package. |
</TMPL_IF> |
* *name* - This required parameter is the name of the package. |
|
|
|
## Examples |
|
|
|
Link to [[!template id=pkg category="www" name="apache"]] package page: |
|
|
|
\[[!template id=pkg category="www" name="apache"]] |