Creating a TextureTriplanarParameter node and plugging it in will create the shader parameters for you.
How do I add this button using Visualshader