create_param function

General function to create a parameter.