Template:If
From EG Help Wiki
{{safesubst:{{safesubst:#ifeq:{{{1}}}|eq|p1|p2}}|{{safesubst:{{safesubst:#ifeq:{{{2}}}|{{{3}}}|p1|p2}}||}}|{{safesubst:{{safesubst:#switch:{{safesubst:#if{{{1}}}:{{{2}}}|p1|p2}}|p1=p1|p2={{safesubst:#ifeq:{{{1}}}|error|{{safesubst:#ifeq:+|-|p2|p3}}|p2}}|if/errmsg}}|{{{3}}}||{{{2}}}|{{{1}}}}}}}