Template:Ifsubst
From Zoophilia Wiki
{{subst:ifsubst|then|else}}
Add the above code to a template of yours to give it ifsubst
functionality. Note that this template in itself must actually be substituted into your new one, becoming part of its code.
With the additional code, if your template is substituted, your "then" text will appear, else your "else" text.