Template:~templates

{{#if:{{{header|}}}|| {{#if:{{{subst|[}}}||{{Substituted}}}}

Usage
Produces: Produces: