Custom Components -- add button or text at any plugin outlet

Would it be possible to add placeholders to the Button URLs, e.g. for the URL to contain the topic ID in which the user is located?