Smarty Template CMS-agnostic URL
{crmURL p="civicrm/points/grant" q="cid=$cid&amp;type=$type"}

^this

The p is the address of the page
The q is the list of parameters
The domain is added first

So the above code (with $cid=A and $type=B) translates into:

http://example.org/civicrm/points/grant?cid=A&amp;type=B