Using tags within tags is impossible. If you want to use variables within tags they either have to exist already (e.g. $entry.title) or you have to create them with [[ assign var=varname value=value ]] and then use them like $varname.
Another option is to capture something using for example [[ capture assign=varname ]][[ self includehostname=1 ]][[ /capture ]]