sorry to be a nuff nuff

i'm trying to limit the no of tags being returned.
this value doesn't have multiple params. I can't find how to pass this to tpl file.
in ptm file i have
<movie>
{%value=tags template="tags.tpl" maxvalues="3"}
...
...
in tags.tpl file i have
<tag>{%value=tags}</tag>
nb. i have tried %params=tags, %value=tag, %value=tag, tag, tags, %tags etc.
output from this is
<tag>{%value=tag}</tag><tag>{%value=tag}</tag><tag>{%value=tag}</tag>
pls pls hlp.

Also would it be possible to have "maxvalues=<value>" understandable under main .ptm file without calling template. Then we can limit no of entries directly from there without having to create a template for every section where we only want to limit the no of entries.
like:
<movie>
<director>{%value=directors maxvalues=2}</director> or
<tags>{%value=tags maxvalues=5}</tags>
....
....