Params anywhere

As I was working in one of the Joomla websites, I ran across a sceranio where i have to call a template parameters in a module. My typical programming instincts was to write a Query and fetch the params and finish the job. But the parameters are stored in a .ini file...