File:  [NetBSD Developer Wiki] / wikisrc / templates / pkg.mdwn
Revision 1.6: download - view: text, annotated - select for diffs
Fri Jun 19 20:26:29 2015 UTC (5 years, 8 months ago) by plunky
Branches: MAIN
CVS tags: HEAD
use templatebody to separate out the description from the template

    1: [[!templatebody <<ENDBODY
    2: [<TMPL_VAR NAME="category">/<TMPL_VAR NAME="name">](http://pkgsrc.se/<TMPL_VAR ESCAPE=URL NAME="category">/<TMPL_VAR ESCAPE=URL NAME="name">)
    3: ENDBODY]]
    4: ## Description
    5: 
    6: Use this template to create a link to a [pkgsrc](http://www.pkgsrc.org)'s package. The template uses two parameters:
    7: 
    8: * *category* - This required parameter is the category of the package.
    9: * *name* - This required parameter is the name of the package.
   10: 
   11: ## Examples
   12: 
   13: Link to [[!template id=pkg category="www" name="apache"]] package page:
   14: 
   15:         \[[!template id=pkg category="www" name="apache"]]

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