How to create fake nodes
What you are asking is rather basic module development. Setting up a page that takes an argument.

Check out the Example module, and more specifically the page_example module and page_example_arguments(). That contains the base of what you need.