Need help with simple PHP plugin
I think you can do this in the template by using for example:

craft.request.getSegments


or

craft.request.getParam( name )


See the docs:

https://craftcms.com/docs/templating/craft.request