Links (sub pages) in plugins

Anyone got success to create a link inside a plugin? I creating a plugin but I need more than one file…
/plugin/p=Test#link or /plugin/p=Test/link.php isn’t working…

It’s not advised to write plugins, these potentially may not exist in future versions.